Red Hat Bugzilla – Bug 15191
"w" and "finger" logon list discrepancies
Last modified: 2008-05-01 11:37:57 EDT
Apologies in advance, this is truly petty and minor!
May even be "NOTABUG"...
Anyway, if I use "w" to display logins, then a login via the GNOME gdm
login screen does not show up. Use of "finger" does show it.
Output of "finger":
[chris@localhost chris]$ finger
Login Name Tty Idle Login Time Office Office Phone
chris tty1 1:24 Aug 1 06:27
chris *:0 Aug 1 04:36
root root tty4 1:28 Aug 1 06:27
Output of "w":
[chris@localhost chris]$ w
7:56am up 3:21, 3 users, load average: 0.00, 0.02, 0.02
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
chris tty1 - 6:27am 1:25m 0.15s 0.10s -bash
root tty4 - 6:27am 1:28m 0.09s 0.06s -bash
This defect is considered MUST-FIX for Winston Gold-release
w is skipping over the X login process since the process that added the utmp
entry (sessreg) is no longer around. This makes it very hard to figure out
"what" that user is up to, and how much CPU time they've amassed.
My _guess_ is that this is expected behaviour and NOTABUG.