Encore moi... 8-))
L'option ne fonctionne plus.... :-(
Trouvé là : http://www.zzee.com/solutions/unix-permissions.shtml#setuid
In addition to the basic permissions discussed above, there are also
three bits of information defined for files in UNIX:
* *SUID or setuid: change user ID on execution*. If setuid bit is
set, when the file will be executed by a user, the process will
have the same rights as the owner of the file being executed.
* *SGID or setgid: change group ID on execution*. Same as above, but
inherits rights of the group of the owner of the file. For
directories it also may mean that when a new file is created in
the directory it will inherit the group of the directory (and not
of the user who created the file).
* *Sticky bit*. It was used to trigger process to "stick" in memory
after it is finished, now this usage is obsolete. Currently its
use is system dependant and it is mostly used to suppress deletion
of the files that belong to other users in the folder where you
have "write" access to.
J'en conclus que c'est plutôt un chmod -R g+s...
Cela semble fonctionner, le groupe est respecté, à voir dans le temps!
Il ne reste plus qu'à trouver comment faire de même pour le propriétaire
dans les parties pour enfants/invités (le chmod -R u+s / SUID ne faisant
pas vraiment la même chose - je l'ai bien sûr tenté).
A suivre!
Vincent.
P.S. : ces options, cela correspond au masque, celui qui peut être
défini dans les options de montage, non?
Dubois Vincent a écrit :
Dubois Vincent a écrit :
J'ai modifié un fichier appartenant à l'un avec le user de l'autre,
et il est devenu propriétaire et groupe...
Faut il user du "chmod g+s"?? A moins que ce ne soit l'option
récursive qui pose problème?
Il semble que ce soit l'option -R :
avec un simple chmod g+t, ça a l'air de figer les groupes, ainsi que
les propriétaires : ce qui est encore mieux que ce que voulais faire!
Quoique j'ai machinalement utilisé un sudo (alors que j'utilise un
terminal root)...
Pour l'option "s", si j'ai bien compris, il s'agit de limiter la
possibilité de changer les permissions, brider chmod en quelque sorte,
alors que le "t" fige les permissions dans l'état courant.
J'ai bon là?
Diffusez cette liste aupres de vos relations :-)
Linux Azur : http://linux-azur.org
Vous etes responsable de vos propos.
*** Pas de message SMS, HTML ni de PJ SVP ***