umask seems to be set in various files (centos) as:
/etc/profile
/etc/profile.d/umask.sh
/etc/login.defs
...
what is the precedence order for this?
Moreover, when you set the umask using "umask xxx" where does this value gets stored?
what is the precedence order for this?
Also how do I go about setting umask for /home/ directory.
By default it is set to 755 which I intend to change to 750.
As I understand umask is a global setting and cannot be applied at directory.
If this is the case what other options do I have?