Bug 111411 - "who" shows logged-out users
Summary: "who" shows logged-out users
Alias: None
Product: Fedora
Classification: Fedora
Component: xterm   
(Show other bugs)
Version: 1
Hardware: i386 Linux
Target Milestone: ---
Assignee: X/OpenGL Maintenance List
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2003-12-03 11:43 UTC by jouni
Modified: 2007-11-30 22:10 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-11-15 16:49:00 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description jouni 2003-12-03 11:43:25 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; 

Description of problem:
I get different results when using 'who' and 'w' command on Fedora 
C1.  'w' seems to work ok, but 'who' displays extra users which are 
allready logged out.  last -f /var/run/utmp shows just a few lines, 
like this:

root     pts/2        somehost. Fri Nov 14 16:02    gone - no logout
root     pts/2        localhost:10.0   Mon Nov 17 19:28 - 16:02 (-3+-

It seems that I get these leftovers just by opening extra 'xterm' 
windows and closing it by Ctrl-D.  'who' shows the above entries as 
logged in users.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. xterm&
2. Ctrl-D to close the new window
3. "who"

Actual Results:  who shows the previous pts and user as logged on.

Expected Results:  exited user should not be shown as logged on

Additional info:

Comment 1 Tim Waugh 2003-12-03 11:50:32 UTC
Nothing to do with who, but with xterm.

Comment 2 jouni 2003-12-03 13:40:21 UTC
Should this bug be reopened for xterm?

I guess 'who' could still parse "gone - no logout" as 'gone'

Anyway, doing the same from windows logging in with ssh (Tera Term) 
and immediately logging out with Ctrl-D:

#last -f /var/run/utmp
root     pts/1        hostname Wed Dec  3 15:37    gone - no logout

root     pts/1        Dec  3 15:37 (hostname)

Comment 3 Mike A. Harris 2003-12-15 13:25:31 UTC
twaugh) How is this an xterm bug exactly?

Comment 4 Tim Waugh 2003-12-15 13:32:59 UTC
Maintenance of utmp is nothing to do with 'who'.

Comment 5 Mike A. Harris 2003-12-16 16:04:34 UTC
I was thinking of interpretation of contents of utmp rather than
creation of the entries there.  I'll have to examine SuSv3 to see
if it specifies the valid entries for utmp.


Comment 6 Mike A. Harris 2003-12-16 16:12:04 UTC

Comment 7 Mike A. Harris 2004-10-12 17:22:57 UTC
Since this bugzilla report was filed, there have been several major
updates to the X Window System, which may resolve this issue.  Users
who have experienced this problem are encouraged to upgrade to the
latest version of Fedora Core, which can be obtained from:


If this issue turns out to still be reproduceable in the latest
version of Fedora Core, please file a bug report in the X.Org
bugzilla located at http://bugs.freedesktop.org in the "xorg"

Once you've filed your bug report to X.Org, if you paste the new
bug URL here, Red Hat will continue to track the issue in the
centralized X.Org bug tracker, and will review any bug fixes that
become available for consideration in future updates.

Comment 8 jouni 2004-10-24 09:40:10 UTC
I am currently using FC2 with all available errata/updates.  I still
see this issue.

I get these entries from logins from other hosts with ssh and plain
text shell (i.e. no xterm).  So I assume this error is related to
bash/ssh(d)/who or whoever updateds the utmp.

Comment 9 jouni 2004-11-15 16:49:00 UTC
Seems to work on FC3

Note You need to log in before you can comment on or make changes to this bug.