GNU bug report logs - #73928
"who" should support wtmpdb

Previous Next

Package: coreutils;

Reported by: Vincent Lefevre <vincent <at> vinc17.net>

Date: Mon, 21 Oct 2024 11:17:02 UTC

Severity: normal

Merged with 76346, 76347

Done: Chris Hofstaedtler <zeha <at> debian.org>

Bug is archived. No further changes may be made.

Full log


Message #37 received at 73928 <at> debbugs.gnu.org (full text, mbox):

From: Chris Hofstaedtler <zeha <at> debian.org>
To: Michael Stone <mstone <at> debian.org>
Cc: Vincent Lefevre <vincent <at> vinc17.net>, 73928 <at> debbugs.gnu.org,
 1080330 <at> bugs.debian.org
Subject: Re: Bug#1080330: coreutils: who no longer works
Date: Sun, 16 Feb 2025 23:56:43 +0100
* Michael Stone <mstone <at> debian.org> [250216 22:45]:
> On Sun, Feb 16, 2025 at 07:05:13PM +0100, Vincent Lefevre wrote:
> > No, w(1) is broken (at least in sid). See the difference between
> > "who" and "w" with systemd 256.7-1, i.e. before the upgrade of
> > systemd that removed utmp support:
> 
> That's because someone decided to suddenly remove an interface which has
> been used for decades without any kind of transition plan or replacement.

Clearly there is a replacement, because the data is there:

  % w
  23:53:23 up 1 min,  2 users,  load average: 0.06, 0.03, 0.00
  USER     TTY      FROM             LOGIN@   IDLE   JCPU PCPU WHAT
  ch                192.168.64.1     23:53    1:24 0.00s  0.02s sshd-session: ch [priv]
  ch                -                23:53    1:24 0.00s  0.04s /usr/lib/systemd/systemd --user

  % loginctl
  SESSION  UID USER SEAT LEADER CLASS   TTY IDLE SINCE
  1 1000 ch   -    601    user    -   no   -
  2 1000 ch   -    606    manager -   no   -
  
  2 sessions listed.


But who:

  % who
  %

Chris

PS: Lack of tty in the list is IIRC some problem with openssh not
passing the TTY to PAM, but this is a separate thing.





This bug report was last modified 92 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.