Originally Posted by Cichlid
Thanks a lot for your help.
I'm curious though, from what I understand, changing the umask in the etc/profile it will affect all users. Is this correct? Is there a way to use umask for certain users on a particular directory?
You can specify which users have their umask reset by using bash logic. The umask cannot be controlled based on directory. This line will set the umask for user accounts that are in the mygroup user group.
test "`groups | grep mygroup`" && umask 027
The default setting of 022 is stupid. I always set the umask of user logins to 027 or 077. You should not want "others" to have any access to files that a normal user creates.