Package: libpam-lastlog2 Version: 2.41-5 Severity: normal Dear Maintainer / Dear Chris,
this is about a minimal setup where the lastlog2 package is *not* installed. Only libpam-lastlog2 has been installed explicitly. It turns out that this will not create the directory /var/lib/lastlog and so the PAM module fails to record the logins. Example from journal: sshd-session[993]: pam_lastlog2(sshd:session): Cannot create/open database (/var/lib/lastlog/lastlog2.db): unable to open database file After mkdir /var/lib/lastlog manually the module works fine. The goal is to record logins in lastlog2.db through this PAM module and postprocess this sqlite3 database directly (thanks to the well-known file type). So the lastlog2 "frontend" package is not needed in this case, but without it the PAM module cannot create the database due to the missing directory structure. I believe that this package should create the /var/lib/lastlog directory if necessary during installation. Thank you for considering, Joachim -- System Information: Debian Release: 13.1 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 6.12.48+deb13-amd64 (SMP w/1 CPU thread; PREEMPT) Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) Versions of packages libpam-lastlog2 depends on: ii libc6 2.41-12 ii liblastlog2-2 2.41-5 ii libpam-runtime 1.7.0-5 Versions of packages libpam-lastlog2 recommends: pn wtmpdb <none> libpam-lastlog2 suggests no packages. -- no debconf information

