FS#8051 - The "shadow" package: please set 700 permissions instead of 755
Attached to Project:
Arch Linux
Opened by Oleg Nitz (olegnitz) - Tuesday, 18 September 2007, 08:31 GMT
Last edited by Tom Killian (tomk) - Friday, 30 November 2007, 11:53 GMT
Opened by Oleg Nitz (olegnitz) - Tuesday, 18 September 2007, 08:31 GMT
Last edited by Tom Killian (tomk) - Friday, 30 November 2007, 11:53 GMT
|
Details
Description:
Currently by default "useradd -m" creates home directories with 755 permisions, as UMASK is set to 022 in /etc/login.defs. I propose to change the default value of UMASK to 077, so that home directories will be created with 700 permisions. This change should affect new installations only. I believe that 700 is better default permissions because private home directory is a classic concept for *nix systems (see http://en.wikipedia.org/wiki/Home_directory ). Also note the example of KUser utility from KDE, which creates home directories with 700 permissions. Additional info: * package version(s) shadow 4.0.18.1-5 |
This task depends upon
Closed by Tom Killian (tomk)
Friday, 30 November 2007, 11:53 GMT
Reason for closing: Implemented
Additional comments about closing: Implemented in shadow 4.0.18.2-1
Friday, 30 November 2007, 11:53 GMT
Reason for closing: Implemented
Additional comments about closing: Implemented in shadow 4.0.18.2-1
"umask 022" is set in /etc/profile and affects all mkdirs done by user, I don't propose to change it.
"UMASK 077" will be set in /etc/login.defs and will affect only home dirs for newly created users.
I'd vote -1- this is something you can do on a case by case basis. If a user knows enough about this to change it and worry about it, then change it on your own.
Is there anything else outstanding? Oleg's point made in the comment is sound, as long as we make sure that the umask remains in /etc/profile.
FS#8050http://bugs.archlinux.org/task/8050 ?FS#8050the same fix? Why would we reopen it if it's more-or-less a duplicate of this one?FS#8051is about useradd,FS#8050is about adduser, a proposition to remove several lines from the adduser script, so that adduser will not change permissions set by useradd, whatever they are.I added two different tasks because
FS#8050IMHO makes sense even if you don't acceptFS#8051, it is about clearing things up.