FAQ Database Discussion Community

How to set umask default to an user?

Does anybody know how can I set an umask by default to an user and force them to use it? I think put umask 0002, for example, in his ~/.bashrc file but if I do that, they can change umask. Thanks ;)...

Effect of umask on text files

I understand how umask works, at least a basic level, when dealing with the permissions of an executable file or directory. However, I struggle when it comes to how umask applies its rules to text files. For example, consider the umask 037. On newly created executables or directories I understand...