LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Why is the umask 0002 instead of 0022 (https://www.linuxquestions.org/questions/linux-server-73/why-is-the-umask-0002-instead-of-0022-a-4175509647/)

techie_san778 06-30-2014 09:21 AM

Why is the umask 0002 instead of 0022
 
Hello Folks,

I am running RHEL 5.6 on VMWare. For the first user (whose account is made during installation, apart from root), i find the umask = 0002 instead of 0022.
I checked for all other users including root and found the value of umask = 0022.
Why the system assigns the 0002 umask to only one particular user ??

Best Wishes..

rknichols 06-30-2014 09:59 AM

Actually, it is the 0022 for non-root users that is unusual. Systems that use group-per-user typically use 0002 for a non-root umask to facilitate setting up groups for file sharing, and in RHEL 5 this is set in /etc/bashrc. Individual users can, of course, modify this according to their wishes.

techie_san778 06-30-2014 10:19 AM

Thanks rknichols,
i checked the contents of /etc/bashrc and confirmed that the umask of different users conformed to the condition given in the bashrc.

Best Wishes..


All times are GMT -5. The time now is 10:34 PM.