How would you go about setting up file/directory permissions in GNU/Linux for the following scenario?
- a shared working directory, we'll call it: working_directory;
- multiple users, all belonging to the same group, which we'll call admin;
- all members of the admin group should have full access to create/read/edit/delete files in the working_directory, including those created by other users;
- working_directory has permissions of 775 and the GUID bit set;
umaskis set to022(so default file permissions are 644) and I'm unsure about changing it to002. This would make what I want possible, but would change the setting for the whole system, which worries me a little;- no acl software package installed, but if other people have had success with this and it's not a pain to setup, then please do suggest it;
a Padded Cell our articles site!


teammatt3 posted this at 01:08 — 11th January 2009.
He has: 2,076 posts
Joined: Sep 2003
Could you setup a mount point in fstab and change the umask in the options column?
EDIT: Now I don't think it's possible to mount a directory to another directory. Maybe you could use a big flash drive, or create a separate partition for that.
My Site | Regular Expression Tester
JeevesBond posted this at 20:42 — 11th January 2009.
He has: 3,895 posts
Joined: Jun 2002
Thanks for the advice, I've been investigating a bit further.
It is possible, you can use
mount --bind /home/dave/working_directory /working_directory, for example. There's alsomount -o remount,<some_other_options> /working_directory, to remount a filesystem with different options.This is all cool stuff, which I didn't know before, but only a few file systems allow the
umaskoption and EXT3 isn't one of them (which is the filesystem I have to use).EXT3 does support acl lists though, that might be the easiest way around this. Thanks for the help!
a Padded Cell our articles site!
Abhishek Reddy posted this at 10:58 — 18th January 2009.
He has: 3,348 posts
Joined: Jul 2001
One trick I've used to set umask for operations under a particular directory is to mount it with sshfs -oumask=002.