Bug#866313: systemd: create /var/log/lastlog if it does not exist

Michael Biebl biebl at debian.org
Wed Jun 28 21:10:25 BST 2017


Hi

Am 28.06.2017 um 21:50 schrieb Peter Colberg:
> Package: systemd
> Version: 233-9
> Severity: normal
> 
> Dear Maintainer,
> 
> Could you extend /usr/lib/tmpfiles.d/var.conf as follows?
> 
> f /var/log/lastlog 0664 root utmp -
> 
> systemd already creates /var/log/wtmp and /var/log/btmp if they do not
> exist. For custom live-boot images that exclude files under /var/log/,
> it would be nice to also create /var/log/lastlog, e.g., for sshd:
> 
> # grep lastlog /var/log/auth.log
> Jun 27 20:00:00 huron sshd[1234]: lastlog_openseek: Couldn't stat /var/log/lastlog: No such file or directory

I can see the reason why /var/log/{utmp,wtmp} are shipped by systemd.
See man systemd-update-utmp

I don't immediately see a good reason why such a tmpfile for lastlog
would belong into systemd though, given that systemd does not touch that
file at all.
Can you please elaborate?
-- 
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://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20170628/fc6b564d/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list