Hi,
I have a server that is shared (some directories) by multiple users belonging to a common group. The shared directories have the GID set to the common group as well as group write permission, so when a privileged user creates a file a directory the group ownership is propagated. However, because of the default umask of 022 in FreeBSD, the new files and directories doesn't get the expected permissions (group write).
The proposed solution I found is to set the umask to 002, but I can't find anything about the security implications and consequences. I would like know if there are any risks setting the umask 002 system wide.
When a new user is added, the user get a "private" primary group (same name and the GID is the same as the UID). So the way I see it it's ok unless you explicitly change the ownership of a directory to a common group, in that case all containing files and directories will be writeable by all users in that group.
Also, I have read that some Linux distributions have a system default umask of 002...
Note: I'm changing the default umask in /etc/login.conf for classless users, so root's umask is not affected.
I have a server that is shared (some directories) by multiple users belonging to a common group. The shared directories have the GID set to the common group as well as group write permission, so when a privileged user creates a file a directory the group ownership is propagated. However, because of the default umask of 022 in FreeBSD, the new files and directories doesn't get the expected permissions (group write).
The proposed solution I found is to set the umask to 002, but I can't find anything about the security implications and consequences. I would like know if there are any risks setting the umask 002 system wide.
When a new user is added, the user get a "private" primary group (same name and the GID is the same as the UID). So the way I see it it's ok unless you explicitly change the ownership of a directory to a common group, in that case all containing files and directories will be writeable by all users in that group.
Also, I have read that some Linux distributions have a system default umask of 002...
Note: I'm changing the default umask in /etc/login.conf for classless users, so root's umask is not affected.