Re: umask^H^H^H^H^Hchmod a specific directory to be sticky
Greetings Mike!
man chmod tells something about sticky directories:
STICKY DIRECTORIES
When the sticky bit is set on a directory, files in that directory may
be unlinked or renamed only by root or their owner. Without the sticky
bit, anyone able to write to the directory can delete or rename files.
The sticky bit is commonly found on directories, such as /tmp, that are
world-writable.
I gues that's just what you are looking for...
example:
mkdir /home/agroup
chgrp agroup /home/agroup
chmod -R 6774 /home/agroup
ls -lah /home/agroup
total 8.0K
drwsrwsr-x 2 root agroup 4.0K 2005-07-04 12:15 .
drwxr-xr-x 18 root root 4.0K 2005-07-18 09:42 ..
members of agroup are able to create files or directories in /home/agroup.
these files or directories still belong to the creator, but are editable by
all members of agroup.
(and you don't even need umask in this case...)
thanks for your question
Marco Weber
Reply to: