On Mon, Sep 16, 2024 at 07:10:02PM +0000, Helge Kreutzmann wrote: > > If you installed just the reader tool, then obviously that won't > > magically work. > > Well, this is how I understood you. I did not know there is more to it > - for util-linux version I simply installed and it worked. I cant ever > remember having to configure some background. > > And after reading last(1) from wtmb it was exactly why I opened this > *wishlist* bug - to make it work like the old one did (which seems > sensible to me).
I can guess a lot what you did or not did, or what you debugged or not debugged, or what your system looks like or not. But it's a lot more productive if you provide a clear reproducer, showing how your install differs from a normal setup where it works. Having me guess is just a waste of valuable time for both of us. Anyway, here's my best guess: As you as a long-time Debian user will know, the expectation on Debian systems is that you install recommended packages. wtmpdb recommends libpam-wtmpdb. libpam-wtmpdb installs the necessary PAM module and the configuration for it. If you accepted the defaults, it will be automatically enabled. If not, you'll need to run pam-auth-update yourself. All of this is standard Debian stuff. The old last(1) worked because various programs had special code to write into the file read by last. For wtmpdb, no special code exists, but writing the file is handled by libpam-wtmpdb. Without libpam-wtmpdb, wtmpdb(8) has no data to show. If your system is normal and has libpam-wtmpdb installed and the config is enabled, then please, provide a reproducer. Otherwise please reconsider when you are filing bug reports. Chris

