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.
On my Trixie system `who --users` only provides a carriage return and
prints no information. 'who -a' only prints the last boot time. Seems
like who is seriously broken.
The whole utmp stuff is flaky, a best effort system that might give
some resemblance to reality.
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.
How do I get only the current logins?That gives the history since the last install, but does not do the src
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.
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.
Mike Castle <[email protected]> writes:no, its dns lookup fails there also. Bottom line: who, or its ytmp
The whole utmp stuff is flaky, a best effort system that might giveI believe /run/utmp is gone in trixie, after systemd was upgraded to
some resemblance to reality.
256.5-2. The command `w` still works fine.
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1080330
.
On 3/31/25 02:09, Henrik Ahlgren wrote:correction ytmp s/b utmp
Mike Castle <[email protected]> writes:no, its dns lookup fails there also. Bottom line: who, or its ytmp
The whole utmp stuff is flaky, a best effort system that might giveI believe /run/utmp is gone in trixie, after systemd was upgraded to
some resemblance to reality.
256.5-2. The command `w` still works fine.
helpers, is incapable of reading the /etc/hosts file on systems w/o a
dhcpd.
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1080330
.
Cheers, Gene Heskett, CET.
On 3/31/25 02:09, Henrik Ahlgren wrote:
I believe /run/utmp is gone in trixie, after systemd was upgraded to 256.5-2. The command `w` still works fine.no, its dns lookup fails there also.
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1080330
Bottom line: who, or its ytmp helpers,
is incapable of reading the /etc/hosts file on systems w/o a dhcpd.
Hi,
On Mon, Mar 31, 2025 at 03:36:20AM -0400, gene heskett wrote:
On 3/31/25 02:09, Henrik Ahlgren wrote:This conversation is about the "who" command's inability to show who is currently logged in, not the second thing mentioned which was it not
I believe /run/utmp is gone in trixie, after systemd was upgraded tono, its dns lookup fails there also.
256.5-2. The command `w` still works fine.
doing DNS lookups.
The utmp database had to change because it was not year 2038 safe. who
just hasn't been updated yet. The bugs and complaints for that need to
go upstream, as much as anyone can complain over free software.
Here is the bug report you quoted but did not read:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1080330
I've read it now, but I'm disappointed at how this has been treated. Pot called the kettle black and vice versa with zero progress as bookworm is stuck on 9.1 while the rest of the planet has moved on to at least 9.4 which works.
Sorry to disappoint you but that seems to be working Just Fine, but onceBottom line: who, or its ytmp helpers,This is not how processes on Linux do DNS lookups. Virtually nothing is "capable of reading the /etc/hosts file" because that's not how any of
is incapable of reading the /etc/hosts file on systems w/o a dhcpd.
this works.
Thanks,
Andy
The dns problem is separate I guess, but does bring up my other pet peeve. That is that no one at debian considers the effect on dns to those of us who have been using hosts files for local dns since back in the late 90's I have no dhcpd setup and rig my lashup so that my local lookups are first and in the hosts file, if not it the hosts, my isp's dns gets queried. But every new install changes things around resolv.conf making that harder and harder to do.
What makes the debian people treat hosts file users, like 3rd class users?
On Mon, Mar 31, 2025 at 11:19:30AM -0400, gene heskett wrote:
What makes the debian people treat hosts file users, like 3rd class users?��
I'm a (heavy!) hosts file user. I'm being treated by Debian 1st class. Perhaps it's Raspbian? I don't know.
You must have a very strange setup indeed.
On Mon, Mar 31, 2025 at 11:19:30AM -0400, gene heskett wrote:my whole local 192.168.yy.zz local net runs that way, which is how it
[...]
The dns problem is separate I guess, but does bring up my other pet peeve. >> That is that no one at debian considers the effect on dns to those of us who >> have been using hosts files for local dns since back in the late 90's IGene. I really don't know what you are doing. I do use my hosts file
have no dhcpd setup and rig my lashup so that my local lookups are first >> and in the hosts file, if not it the hosts, my isp's dns gets queried. But >> every new install changes things around resolv.conf making that harder and >> harder to do.
all the time (last time was Thursday last week). I use it when testing
out some web site, whose test version is running in the local net (say 192.168.42.13) but which thinks it's "www.foo.com". I just put that entry
in the /etc/hosts, and things Just Work. I *need* that for my devel
work.
The only offender I have to be aware of is the browser, which sometimes
would like to do DoH (which we have explained already in another thread,
so I won't repeat).
What makes the debian people treat hosts file users, like 3rd class users?I'm a (heavy!) hosts file user. I'm being treated by Debian 1st class. Perhaps it's Raspbian? I don't know.
You must have a very strange setup indeed.I blame it on the busted bookworm installer. Anything plugged into usb
Cheers
On 3/31/25 05:10, Andy Smith wrote:
Here is the bug report you quoted but did not read:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1080330
I've read it now, but I'm disappointed at how this has been treated. Pot called the kettle black and vice versa with zero progress as bookworm is stuck on 9.1 while the rest of the planet has moved on to at least 9.4 which works.
I blame it on the busted bookworm installer. Anything plugged into usb triggers it to put orca and brltty in whether you want it or not. I
don't own a wired mouse. I did close to 40 installs trying to find a
way around that but probably 30 of he reinstalls were because it would
not reboot once I'd shut orca up. Couldn't remove it because of
dependencies until an update finally fixed the dependencies but now
I'm stuck with a 30 second to a full minute system freeze while trying
to create or open a file in my /home/me path. That's very distracting,
fouls up ones train of thought waiting and waiting for the file
requestor to open. Once it does open, freezeup is finished, but it
sure wastes a lot of time. Mouse pointer moves but buttons and
keyboard are dead.
Cheers, Gene Heskett, CET.
On Mon, Mar 31, 2025 at 11:19:30AM -0400, gene heskett wrote:
On 3/31/25 05:10, Andy Smith wrote:
Here is the bug report you quoted but did not read:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1080330
I've read it now, but I'm disappointed at how this has been
treated. Pot called the kettle black and vice versa with zero
progress as bookworm is stuck on 9.1 while the rest of the planet
has moved on to at least 9.4 which works.
The subject of this thread is coreutils in the forthcoming trixie
release, where "who" is not particularly functional as discussed.
I have no idea what tangent you are going off on now, and the rest of
your off-topic and self-inflicted issues with hosts files will not be
tackled (again) by me. All I will say for the archives is that as
usual the complaints are entirely without merit.
Mike Castle <[email protected]> writes:
The whole utmp stuff is flaky, a best effort system that might give
some resemblance to reality.
I believe /run/utmp is gone in trixie, after systemd was upgraded to
256.5-2.
The command `w` still works fine.
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1080330
Mike Castle <[email protected]> writes:
I believe /run/utmp is gone in trixie, after systemd was upgraded to
256.5-2.
If you touch /run/utmp it will magically start working again.
On Tue, 1 Apr 2025 15:19:48 -0400>Michael Stone <[email protected]> wrote:
If you touch /run/utmp it will magically start working again.
Thank you.
To be pedantic, any logins subsequent to touching it will show up. It
is necessary to touch it after a reboot. So a nice workaround.
On Tue, 1 Apr 2025 15:19:48 -0400
Michael Stone <[email protected]> wrote:
If you touch /run/utmp it will magically start working again.
Thank you.
To be pedantic, any logins subsequent to touching it will show up. It
is necessary to touch it after a reboot. So a nice workaround.
To be pedantic, any logins subsequent to touching it will show up. It
is necessary to touch it after a reboot. So a nice workaround.
Yeah. I'm working on it; I'd like for both mechanisms to work for
trixie because IMO the transition was premature and the replacement
isn't 100% ready.
To be pedantic, any logins subsequent to touching it will show up.
It is necessary to touch it after a reboot. So a nice workaround.
It should be possible to create this file as part of the boot
sequence, before user logins are even allowed, yes? If nothing else,
you could create an rc.local file (don't forget +x). But I think
systemd also has some sort of mechanism for creating files at boot
time.
See:
systemd-tmpfiles(8)
tmpfiles.d(5)
Of course it's more complex than creating an rc.local file, but take
your pick.
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 716 |
| Nodes: | 16 (2 / 14) |
| Uptime: | 51:49:41 |
| Calls: | 12,115 |
| Calls today: | 6 |
| Files: | 15,010 |
| Messages: | 6,518,580 |
| Posted today: | 1 |