Re: Default permissions for creating a new user

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



on 16:45 Fri 25 Mar, Todd Cary (todd@xxxxxxxxxxxxxxxxxx) wrote:
> I know this is a Linux 101 question, however I am unable to 
> locate the answer in my O'Reilly Linux book: how to set the 
> default for permissions when creating a new user.  The default 
> for the GUI in my newly installed Centos 5.5 is 700.  I usually 
> use 774.
> 
> And when root creates a new directory, is there a way to have a 
> default there too?
> 
> Lastly, if root or someone with root privileges creates a 
> sub-directory, is there a setting so that the sub-directory will 
> have the owner/group and permissions as the parent directory?

man adduser -> FILES -> /etc/login.defs

At login, umask is set by the shell initialization.  Check ~/.bashrc,
~/.bash_profile, /etc/bashrc, and /etc/profile, for the usual suspects.

-- 
Dr. Ed Morbius, Chief Scientist /            |
  Robot Wrangler / Staff Psychologist        | When you seek unlimited power
Krell Power Systems Unlimited                |                  Go to Krell!
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux