Bug#870638: systemd: /var/log/btmp has inconsistent permissions

Michael Biebl biebl at debian.org
Fri Aug 4 09:09:09 BST 2017


Control: tags -1 + moreinfo

Am 03.08.2017 um 18:46 schrieb Mark Charter:
> Package: systemd
> Version: 232-25+deb9u1
> Severity: normal
> 
> Dear Maintainer,
> 
> When /var/log/btmp is created at installation (by
> /var/lib/dpkg/info/base-files.postinst) its permissions are 0660
> (u=rw,g=rw,o=).  When it is (re)created by log file rotation (in
> /etc/logrotate.conf) its permissions are also 0660.  But if it is
> created by systemd, or after a reboot, its permissions (from
> /usr/lib/tmpfiles.d/var.conf) are 0600.  So its permissions can change
> with time, and they often change across a reboot.
> 
> I suggest that the three sources of file permissions should be made
> consistent, for example by changing the permissions in
> /usr/lib/tmpfiles.d/var.conf from
> 
> f /var/log/btmp 0600 root utmp -
> 
> to
> 
> f /var/log/btmp 0660 root utmp -

Why do /var/log/btmp and /var/log/utmp have different permissions, i.e.
0660 vs 0664 in Debian? That seems inconsistent as well.


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/attachments/20170804/2ef9b727/attachment.sig>


More information about the Pkg-systemd-maintainers mailing list