1838290 Members
3557 Online
110125 Solutions
New Discussion

Re: File permissions

 
Brien M Patrick_1
Occasional Advisor

File permissions

Here's a weird situation that I'm trying to resolve. When I set umask in my user id profile to 002 or anything else my umask still seems to be set by the global /etc/profile of 022. Why would my user id profile not work. I'm a little stumped. Thanks in advance for your help.
1 REPLY 1
A. Clay Stephenson
Acclaimed Contributor

Re: File permissions

The last umask wins. I would do a umask immediately upon logging in. That should reflect the value set in your .profile. It is possible that your .profile either branches around your umask setting via an if or that your .profile sources another file that sets umask after your .profile setting. Move your umask setting to the end of your .profile and set if that doesn't clear up the problem. You should also note that umask might be called in a script or program and that will override your default setting.
If it ain't broke, I can fix that.