GNU bug report logs - #21349
who shows no users nowadays on Debian

Previous Next

Package: coreutils;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Tue, 25 Aug 2015 23:33:02 UTC

Severity: normal

Tags: notabug

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


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

From: "L. A. Walsh" <coreutils <at> tlinx.org>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 21349 <at> debbugs.gnu.org
Subject: Re: bug#21349: who shows no users nowadays on Debian
Date: Wed, 26 Aug 2015 17:19:18 -0700
積丹尼 Dan Jacobson wrote:
> (info "(coreutils) who invocation") says
>
> If given no non-option arguments, ‘who’ prints the following
> information for each user currently logged on: login name, terminal
> line, login time, and remote hostname or X display.
>
> $ who
>   
The same thing happens on openSuSE -- I think it's because of the move to
systemd -- it doesn't maintain the wtmp/utmp stuf..

>  who                                                               
>  who am i
>  who -a
>  who -b
>  who -d
>  who -H
NAME     LINE         TIME         COMMENT
>  who -l
>  who -m
>  who -p
>  who -q
I> who -r
----
I don't have utmp, just a smallish wtmp:
So I tried a symlink:

sudo ln -s /var/log/wtmp /var/run/utmp

It's not quite the same, but some things work:

Ishtar:law> who am i
law      pts/1        Aug 26 16:37 (athenae)
Ishtar:law> who
law      pts/0        Aug 26 11:59 (athenae)
law      pts/1        Aug 26 16:37 (athenae)

who -b doesn't work, but uptime does:
Ishtar:law> who -b
Ishtar:law> uptime
17:16pm  up 61 days 12:36,  2 users,  load average: 0.00, 0.06, 0.11

So has debian been moving to systemd as well?









This bug report was last modified 6 years and 211 days ago.

Previous Next


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