On 3/30/25 18:25, Charles Curley wrote:
On bookworm who (GNU coreutils 9.1) operates more or less as I have
expected it to operate for several decades: it prints current logins.
E.g.:

charles@hawk:~$ who
charles  tty7         2025-03-30 11:31 (:0)
charles  pts/35       2025-03-27 20:13 (192.168.100.47)
root     pts/36       2025-03-27 21:48 (192.168.100.47)
charles@hawk:~$

On trixie who (GNU coreutils 9.5) gives me a long list of logins, most
of which predate the most recent reboot. "who -u", similarly.

who version 9.4 on armbian does not suffer from either of these problems. 9.1 on bookworm would seem to be a bit elderly.

However 9.1 on an rpi4 running bookworm in aarch64  works well.

Some of my cnc machines are still on wheezy, where version 8.3 also works properly. You and I have 9.1 which acts as you say.

How do I get only the current logins?

Also, who on bookworm works fine with no arguments. who on bookworm
requires the file to use in order to get any useful output at all,
e.g.: "who -Hu /var/log/wtmp". This might be a bug.
That gives the history since the last install, but does not do the src address lookup, so IMO its not a perms problem.

Finally, I see that bug #798910, "coreutils: /usr/bin/who --lookup does
not look up ip addresses in dns", is still outstanding and a bit
annoying. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=798910

Thank you.

Cheers, Gene Heskett, CET.
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis

Reply via email to