Definition of umask

Tom H tomh0665 at gmail.com
Wed Aug 6 08:21:25 UTC 2014


On Wed, Aug 6, 2014 at 2:50 AM, Niki Kovacs <info at microlinux.fr> wrote:
>
> I'm currently wondering how - or more exactly where - umask is defined on a
> stock Ubuntu server system (12.04 and 14.04).
>
> I have reactivated the root account. Here's the respective default umask for
> root and normal users:
>
> kikinovak at raymonde:~$ umask
> 0002
> kikinovak at raymonde:~$ su -
> Mot de passe :
> root at raymonde:~# umask
> 0022
>
> On RHEL/CentOS, these values are defined in /etc/bashrc and then in the
> individual ~/.bashrc files.
>
> How does Ubuntu handle this?

Via pam; the umask value is set in "/etc/login.defs".

But you can override it in bashrc.




More information about the ubuntu-users mailing list