Does anybody know how can I set an umask by default for 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 ;)
Does anybody know how can I set an umask by default for 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 ;)
You can make a work around for it by using
/etc/profile
file. I added the following lines at end of/etc/profile
. It will overwrite the actual umask command by after setting it the value which you require