On Wed, 10 Jun 2026, Craig Small wrote:

On Mon, 8 Jun 2026 at 22:13, Harald Hannelius <[email protected]> 
wrote:

      $ 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.

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?

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.
$


Also is this true for all types of user access? local vty, windows, ssh?

All users log on over ssh solely.


      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?

These are beyond me, haven't touched any of those.


--

Harald Hannelius | harald.hannelius/a\arcada.fi | +358 50 594 1020

Reply via email to