Ask Your Question

The command who shows nothing

asked 2017-05-06 08:33:47 -0600

bixo gravatar image


I call the command who and returns nothing, no matters how many terminals I have opened. This happen with terminals opened in the graphic interface. If I open a tty console (p.e. ctrl+alt+f2) and login, this login is showed by the who command. I've tested different terminals (xterm, eterm, gnome-terminal, terminator, urxvt) with the same results. I've checked the utmp and if the tty can write on it, I think the permissions are correct.

It seems that the pty or pts are not registering in the umtp. On other machine with other distro (CentOS) this works ok.

I installed f24 from the lxde live cd and I'm using fluxbox, but with other WM like lxde the behavior is the same.

What can be happening here? Any Ideas?

edit retag flag offensive close merge delete


You aren't the only one. I'm running F 25 with Xfce and have been noticing the same thing.

sideburns gravatar imagesideburns ( 2017-05-06 09:51:20 -0600 )edit

And wat is happening when you give the command: w ?

Jos gravatar imageJos ( 2017-05-08 13:37:38 -0600 )edit

It gives me this:

[bixo@rigel ~]$ w
 21:06:44 up 15:13,  0 users,  load average: 1.42, 1.07, 0.99
[bixo@rigel ~]$

Now opening a tty, it gives me this

[bixo@rigel ~]$ w
 21:09:44 up 15:16,  1 user,  load average: 0.63, 0.85, 0.91
bixo     tty2      21:09   21.00s  0.08s  0.08s -bash
[bixo@rigel ~]$
bixo gravatar imagebixo ( 2017-05-08 20:12:14 -0600 )edit

Do you get output when using the command finger? (The finger displays information about the system users)

Jos gravatar imageJos ( 2017-05-10 03:11:04 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2017-08-18 08:32:07 -0600

hedayat gravatar image

I'm using Gnome (F26), and see only 1 user in w/who output, regardless of the number of open graphical terminals, which is consistent with their intended use:

[hedayat@localhost ~]% whatis w
w (1)                - Show who is logged on and what they are doing.
[hedayat@localhost ~]% whatis who
who (1)              - show who is logged on

And opening a new virtual terminal is correctly not counted as a 'login'.

However, you say there are NO users listed, which is weird and apparently wrong. There might be a problem with how XFCE/LXDE login managers work, and probably should be reported as a bug against them.

edit flag offensive delete link more


The combination lightdm and xfce does work.

villykruse gravatar imagevillykruse ( 2017-08-18 10:47:45 -0600 )edit

Great. Is it Fedora 26? Since it seems that @sideburns has this problem in F25 too.

hedayat gravatar imagehedayat ( 2017-08-18 13:27:00 -0600 )edit

It depends on your display manager. Search Google for "lxdm utmp" gives as one of the hits:
"Is there a way to have lxdm update utmp?"
villykruse gravatar imagevillykruse ( 2017-08-18 15:02:41 -0600 )edit

Oh nice. I thought lightdm was the default manager for lxde/xfce.

hedayat gravatar imagehedayat ( 2017-08-18 15:36:43 -0600 )edit

Question Tools


Asked: 2017-05-06 08:33:47 -0600

Seen: 117 times

Last updated: Aug 18 '17