$ w 14:55:47 up 3:58, 3 users, load average: 0.07, 0.05, 0.00 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT $ who $ finger No one logged on. I expected to see a list of people logged on. nsswitch is set to get users from files and ldap.
That looks like its the writing part of the process going wrong with 3 different systems not showing users, rather than the reading side. w uses information like what "loginctl list-users" shows, what does that command give you? Also is this true for all types of user access? local vty, windows, ssh? nsswitch is set to get users from files and ldap. That side which is pam-account is probably ok, what about pam sessions (e.g session lines in /etc/pam.d/*), anything different? - Craig
I think I'm actually barking up the wrong tree here. It looks like if I use ssh to log on, my session shows up in w's output. If I use mosh, I don't. From a mosh-session; $ w 10:52:21 up 1 day, 23:55, 2 users, load average: 0.00, 0.00, 0.00 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT $ loginctl list-users UID USER LINGER STATE xxx harald no closing 1 users listed. $ Log om over ssh; $ w 10:53:06 up 1 day, 23:56, 3 users, load average: 0.00, 0.00, 0.00 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT harald pts/0 2001:xxxx:xxx:xxx:::6 10:53 2.00s 0.02s ? w $ loginctl list-users UID USER LINGER STATE xxx harald no active 1 users listed. $ All users log on over ssh solely. These are beyond me, haven't touched any of those.
I can easily repro this with mosh. Probably it doesn't register its session with logind. Best to reassign this problem to mosh, IMO. Best, Chris
Thanks. I notice that talk doesn't work either anymore. I see that write got removed some time ago already, but talkd and ytalk are still installable packages. They don't see anyone logged on either with ssh or mosh.
yatlk was removed in 2019. talkd probably wants a bug then. Chris
reassign 1139309 mosh retitle 1139309 mosh doesn't create user entries affects 1139309 procps thankyou Hi, Harald reported that w (and finger and who) didn't show users, but it looks like mosh isn't registering them; unlike say ssh which the users do show up. This might be due to the difference between a user session and a terminal leader with a user attached but I would have thought there would be at least one user in any case. - Craig On Wed, 10 Jun 2026 at 22:40, Harald Hannelius <harald.hannelius@arcada.fi> wrote: