On Sunday 05 September 2004 06:34, Jim Sabatke wrote:
Chris Carlen wrote:
Hi:
I have a filesystem called /photos whose files and subdirs I want in group "users" and with permissions:
anyuser:users rwxrwxr-x
at all times.
That is, I want all users able to read, write, create, and destroy these files at will.
I can do this with recursive commands to change the perms, but when a user creates a new file, it is created with that user's umask.
How can I make the filesystem have a umask that overrides the users' umasks?
Thanks for input.
I think this is one of those rare cases where VMS would be easier!
Huh? I don't understand this - but everything is easy if one knows how to do it. The default umask is set in /etc/profile. Leave this file alone, additions go into /etc/profile.local (read the comments in that file). If you want a specific umask for a specific group, put the next lines in /etc/profile.local: if [ "`id -gn`" = "users" ]; then umask u=rwx,g=rwx,o=rx fi I did not test the if ... then construct, but I do have a umask definition in my profile.local that works. Cheers, Leen