You are not logged in.

#1 2020-07-06 02:04:16

cmccabe
Member
Registered: 2020-07-03
Posts: 2

mosh users don't show up with 'w' or 'last' commands

I am running an Arch server that users log into via ssh or mosh.  Until recently, I could always see who was logged in with the 'w' command, or see who was recently logged in with the 'last' command.  These commands rely on the utmp and wtmp files, respectively.  However, sometime in the past month, mosh users stopped appearing in the output of these commands.  So any user logged in via mosh doesn't appear online.  Users logged in via ssh still appear in both 'w' and 'last' output.

I asked on the IRC channel for mosh and the folks there said nothing has changed with mosh.

I have restarted the server, made sure mosh is updated, and I do regular pacman -Syu's.

Am I missing an obvious cause of this problem?  Or what else can I do to diagnose and solve it?

Offline

#2 2020-07-06 10:24:42

sabroad
Member
Registered: 2015-05-24
Posts: 242

Re: mosh users don't show up with 'w' or 'last' commands

Can you report a bug against arch libutempter package please?

utempter: relax host argument validation

Mosh (a mobile shell) has beenusing spaces in its utmp entries (created through libutempter) since its
early releases in 2012, and some tools rely on it to check whether the
mosh-server currently has a client attached.

With this change, host argument is allowed to contain spaces

mosh-server(1)

On platforms with utempter, mosh-server maintains an entry in the utmp(5) file

Last edited by sabroad (2020-07-06 10:33:00)


--
saint_abroad

Offline

#3 2020-07-06 13:01:54

cmccabe
Member
Registered: 2020-07-03
Posts: 2

Re: mosh users don't show up with 'w' or 'last' commands

sabroad wrote:

Can you report a bug against arch libutempter package please?

Done.  Thanks for your help identifying the issue.

Offline

Board footer

Powered by FluxBB