[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#64937: "who" reports funny dates
From: |
Thorsten Kukuk |
Subject: |
bug#64937: "who" reports funny dates |
Date: |
Fri, 4 Aug 2023 06:53:17 +0000 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
Hi,
On Fri, Aug 04, Paul Eggert wrote:
> Thanks for doing all that work. I looked into it, and found a problem: a
> command like "who /var/log/wtmp" stops working because the systemd
> emulation of read_utmp only supports plain "who" (rougnly equivalent to
> "who /var/run/utmp" on Fedora). So I installed it into coreutils, but
> the default is systemd is disabled. This should give people time to
> experiment with it.
>
> Thorsten, is there some way to get the equivalent of /var/log/wtmp with
> systemd?
systemd does not collect wtmp data, because the applications don't
report this data to systemd. And I don't think it makes sense to
implement that or that such patches would be accepted by systemd
developers.
wtmp uses the same struct as utmp and thus faces the same problems,
including the Y2038 issue.
For this reason we (openSUSE/SUSE) switched to wtmpdb:
https://github.com/thkukuk/wtmpdb and don't support /var/log/wtmp
anymore.
And yes, "who /var/log/wtmp" will not work with this, too. But is this
really a required or usefull use case?
/usr/bin/last can give you the same output.
Thorsten
--
Thorsten Kukuk, Distinguished Engineer, Senior Architect, Future Technologies
SUSE Software Solutions Germany GmbH, Frankenstraße 146, 90461 Nuernberg,
Germany
Managing Director: Ivo Totev, Andrew McDonald, Werner Knoblich
(HRB 36809, AG Nürnberg)
- bug#64937: "who" reports funny dates, Bruno Haible, 2023/08/01
- bug#64937: "who" reports funny dates, Bruno Haible, 2023/08/01
- Message not available
- bug#64937: "who" reports funny dates,
Thorsten Kukuk <=
- bug#64937: "who" reports funny dates, Paul Eggert, 2023/08/06
- bug#64937: "who" reports funny dates, Paul Eggert, 2023/08/06
- Message not available
- bug#64937: "who" reports funny dates, Thorsten Kukuk, 2023/08/06
- bug#64937: "who" reports funny dates, Paul Eggert, 2023/08/06
- Message not available
- bug#64937: "who" reports funny dates, Thorsten Kukuk, 2023/08/06
- bug#64937: "who" reports funny dates, Paul Eggert, 2023/08/06
- bug#64937: "who" reports funny dates, Bruno Haible, 2023/08/07
- bug#64937: "who" reports funny dates, Paul Eggert, 2023/08/07
- bug#64937: "who" reports funny dates, Bruno Haible, 2023/08/08
- bug#64937: "who" reports funny dates, Paul Eggert, 2023/08/08