Hi,
I have several directories, each owned by root and a group of the same name, like this:
Code:
drwxrwsr-x 2 root group1 4096 2009-04-03 18:10 group1
drwxrwsr-x 2 root group2 4096 2009-04-03 18:10 group2
drwxrwsr-x 2 root group3 4096 2009-04-03 18:10 group3
As you may have guessed, each user of group1, group2 or group3 should have write access to the respective directory.
By setting the sgid bit, I made sure that newly created files and directories are owned by the correct group, and that directories have the sgid bit set too.
Here goes my problem:
On each newly created directory or file, the permissions are set to 755. This is because this is the default umask, and I cannot change a users umask. I actually only want files created below a particular directory to have group write access, inheriting this behaviour to newly created directories properly.
I'm not on samba or NFS, I have to do this for SSH users.
The filesystem is ext3.
I started to fool around with ACLs, but couldn't find what I was looking for.
What do you think?