Sylvester Lykkehus wrote:
On 2008-08-11 12:26, John wrote:
Ken Schneider wrote:
By setting the owner/group (of the directory) _and_ setting the proper perms any file created by anyone in that directory becomes owned by the owner/group of the directory.
And how do I achieve this, please? My directories covered by this regime are already set to root:users but any new files put in them revert to root:root!
J
Again, use the sticky bit, or the default acl through setfacl
#chown root.users <dirname> #chmod g+s <dirname> #touch <dirname>/test.file
<dirname>/test.file will be owned by root.users
/Sylvester
Hi Sylvester/Ken, Just to be correct, this is called SGID or set group ID. These advanced file perms with octal values followed by symbolic representation are: default mode example SUID 4000 -rwsr--r-- SGID 2000 -rwxr-sr-- Sticky bit 1000 drwxrwxrwt The lower case s and the lower case t represents an execute bit is set there. For the first example the file perms without the influence of the SUID is 744 but with the SUID is 4744 (u+s). The second is 754 without and 2754 (g+s) with, and the third is 777 without and 1777 (o+t) with. Hope this helps, Phil -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org