LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-30-2014, 09:21 AM   #1
techie_san778
Member
 
Registered: Jul 2011
Posts: 90

Rep: Reputation: Disabled
Exclamation 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..
 
Old 06-30-2014, 09:59 AM   #2
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,770

Rep: Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210
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.
 
2 members found this post helpful.
Old 06-30-2014, 10:19 AM   #3
techie_san778
Member
 
Registered: Jul 2011
Posts: 90

Original Poster
Rep: Reputation: Disabled
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..

Last edited by techie_san778; 06-30-2014 at 01:01 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
umask and permissions: has umask 007 bad side effects? browny_amiga Linux - General 2 09-09-2011 08:01 AM
umask and /usr/bin/umask linux_user2011 Linux - Newbie 6 04-27-2011 02:05 AM
Evince saving PDF as 0600 but umask is 0022 m.collingwood Linux - Security 0 01-04-2011 05:09 PM
umask 0002 works in a shell but not with Nautilus lotz98 General 2 12-04-2004 09:29 AM
umask 0002 works in a shell but not with Nautilus lotz98 Linux - Newbie 0 12-04-2004 07:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration