]> git.ipfire.org Git - thirdparty/shadow.git/commit
add new HOME_MODE login.defs(5) option 209/head
authorDuncan Overbruck <mail@duncano.de>
Sat, 11 Jan 2020 21:19:37 +0000 (22:19 +0100)
committerDuncan Overbruck <mail@duncano.de>
Sun, 12 Jan 2020 15:18:32 +0000 (16:18 +0100)
commit085d04c3ddfb817ba5f13269b604384c260be84f
tree07181c5ae1023dcfcef50d09b68effe085b9b9eb
parented4a0157c4db32d58fec5ebed3ace9902899f981
add new HOME_MODE login.defs(5) option

This option can be used to set a separate mode for useradd(8) and
newusers(8) to create the home directories with.
If this option is not set, the current behavior of using UMASK
or the default umask is preserved.

There are many distributions that set UMASK to 077 by default just
to create home directories not readable by others and use things like
/etc/profile, bashrc or sudo configuration files to set a less
restrictive
umask. This has always resulted in bug reports because it is hard
to follow as users tend to change files like bashrc and are not about
setting the umask to counteract the umask set in /etc/login.defs.

A recent change in sudo has also resulted in many bug reports about
this. sudo now tries to respect the umask set by pam modules and on
systems where pam does not set a umask, the login.defs UMASK value is
used.
etc/login.defs
lib/getdef.c
man/login.defs.5.xml
man/login.defs.d/HOME_MODE.xml [new file with mode: 0644]
man/login.defs.d/UMASK.xml
man/newusers.8.xml
man/useradd.8.xml
src/newusers.c
src/useradd.c