[ale] umask for root on Suse?
Dow_Hurst
dhurst at mindspring.com
Mon Dec 17 21:05:07 EST 2007
Alex,
thanks for that info! I use OpenSuSE pretty exclusively and hadn't learned that golden nugget.
Merry Christmas,
Dow
-----Original Message-----
>From: Alex LeDonne <aledonne.listmail at gmail.com>
>Sent: Dec 13, 2007 2:04 PM
>To: Atlanta Linux Enthusiasts <ale at ale.org>
>Subject: Re: [ale] umask for root on Suse?
>
>On Dec 13, 2007 11:13 AM, Geoffrey <lists at serioustechnology.com> wrote:
>> Since I'm no longer using SuSE, I can't research this issue. Where is
>> the umask for root set on a SuSE box?
>>
>
>
>I'm on SuSE 10.3. Here's what I found:
>in /etc/profile:
>#
># The user file-creation mask
>#
># The global umask value is stored in /etc/login.defs and
># will be set by pam_umask.so (see "man pam_umask").
>#umask 022
>
>in /etc/login.defs:
>#
># Umask which is used by useradd and newusers for creating
># new home directories.
>#
>UMASK 022
>
>And finally, according to man pam_umask:
> pam_umask is a PAM module to set the file mode creation mask of the
> current environment. The umask affects the default permissions assigned
> to newly created files.
>
> The PAM module tries to get the umask value from the following places
> in the following order:
>
> ? umask= argument
>
> ? umask= entry of the users GECOS field
>
> ? pri= entry of the users GECOS field
>
> ? ulimit= entry of the users GECOS field
>
> ? UMASK= entry from /etc/default/login
>
> ? UMASK entry from /etc/login.defs
>
>
>So, at least on my box, it sees to be pam_umask reading from
>/etc/login.defs, if it's not overridden in root's .profile, .bash_rc,
>or something.
>
>-A
>_______________________________________________
>Ale mailing list
>Ale at ale.org
>http://www.ale.org/mailman/listinfo/ale
No sig.
More information about the Ale
mailing list