[systemd-devel] sysusers and login.defs checks

Reindl Harald h.reindl at thelounge.net
Sun Jul 20 14:52:40 PDT 2014


Am 20.07.2014 23:38, schrieb Colin Guthrie:
> 'Twas brillig, and Colin Guthrie at 20/07/14 22:31 did gyre and gimble:
>> Those defaults could be set from a compile time check of
>> login.defs too.
> 
> FWIW, at least here, /etc/login.defs is not readable by regular users so
> any build system that builds as non-root won't even get those defaults
> anyway, so that's probably another argument for runtime checks too...

why is it not readable?

[root at srv-rhsoft:~]$ rpm -q --file /etc/login.defs
shadow-utils-4.1.5.1-8.fc20.x86_64

[root at srv-rhsoft:~]$ stat /etc/login.defs
  File: '/etc/login.defs'
  Size: 1475            Blocks: 8          IO Block: 4096   regular file
Device: 901h/2305d      Inode: 1179182     Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2011-08-02 14:24:16.000000000 +0200
Modify: 2011-08-02 14:24:16.000000000 +0200
Change: 2014-03-01 21:20:57.113612115 +0100

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 246 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20140720/7bd3e4f3/attachment.sig>


More information about the systemd-devel mailing list