1834450 Members
2351 Online
110067 Solutions
New Discussion

Where is umask set?

 
SOLVED
Go to solution
Robin C. Querol
Occasional Advisor

Where is umask set?

When I check the value of my umask upon login, it is set to 022 but I do not have the setting in my .profile or .login or .cshrc or in the /etc/profile. Where is it set?
5 REPLIES 5
Michael Steele_2
Honored Contributor
Solution

Re: Where is umask set?

grep -i umask /sbin/rc for this is where specific applications put it if its not in the /etc/profile file.
Support Fatherhood - Stop Family Law
RAC_1
Honored Contributor

Re: Where is umask set?

It is the default value.

To enforce system wide umask you can put it in /etc/profile. but you user can override it with umask command.
There is no substitute to HARDWORK
Balaji N
Honored Contributor

Re: Where is umask set?

from the umask man page, it saus that the default umask is 000. since it is not that in your case, there is some file in whic h it is set.
how abt a grep on .* files and file in /etc directory.

is this umask same for all users. try creating a new user and see if the result is same.

and what is the shell of the user. is it by any chance in files like /etc/csh.login?

hth
-balaji
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.
Steve Steel
Honored Contributor

Re: Where is umask set?

Hi


try

grep -i umask /sbin/init.d/*


Steve steel
If you want truly to understand something, try to change it. (Kurt Lewin)
RAC_1
Honored Contributor

Re: Where is umask set?

Sorry it is in /sbin/rc.

Something new to learn.
There is no substitute to HARDWORK