Skip to content

Migrate to lastlog2

Description:

util-linux 2.40 now includes "lastlog2" a YK38 safe replacement for lastlog. It consists of a new lastlog2 binary, a compat symlink for the old lastlog, and a pam_lastlog2 module which does the recording in place of login(1). See the lastlog related meson options.

I think Arch Linux should migrate to lastlog2 "soon", i.e. well in advance of YK38. It has to happen eventually and I don't think there's really a compelling reason to wait.

Additional info:

$ pacman -Q util-linux
util-linux 2.40.2-1
$ lastlog2
lastlog2: Couldn't read entries for all users
lastlog2: Cannot open database (/var/lib/lastlog/lastlog2.db): unable to open database file
$ grep -R lastlog2 /etc/pam.d || echo "no match"
no match
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information