utmp doent clear when logged in via console (Ubuntu Desktop and Server 8.04)

Bug #302619 reported by Jinx
2
Affects Status Importance Assigned to Milestone
eglibc (Ubuntu)
New
Undecided
Unassigned

Bug Description

I wanna report a stupid bug in Ubuntu Desktop and Ubuntu Server 8.04, maybe even other version. I have 3 servers, 2 of them running CentOS and 1 running Ubuntu Server plus 1 laptop running Ubuntu Desktop 8.04.

Went I login through console on Ubuntu Desktop or Ubuntu Server, meaning "using getty" or tty's, in the file /var/run/utmp this users are not remove, or deleted or whatever is called. In this case the system will see more users than they are actually logged in. Only in case of using commands like "w" "uptime" or "pinky" which read utmp file, "who" is no affected.

Here is a sample of what I am talking about:

root Admin *tty3 96d 2008-08-19 20:46
root Admin *tty1 42d 2008-10-09 20:02

jinx@laptop:~$ w
 22:28:44 up 5:21, 4 users, load average: 0.60, 0.31, 0.12
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
jinx tty7 :0 17:09 0.00s 7:54m 0.20s x-session-manager
jinx pts/0 :0.0 21:15 2:36m 0.14s 0.04s ssh server
jinx pts/1 :0.0 22:28 0.00s 0.10s 0.00s w
jinx@laptop:~$ uptime
 22:28:50 up 5:21, 4 users, load average: 0.55, 0.30, 0.12
jinx@laptop:~$ pinky
Login Name TTY Idle When Where
root root *tty1 01:05 2008-11-26 21:22
jinx Robert Gabriel tty7 2008-11-26 17:09 :0
jinx Robert Gabriel pts/0 00:02 2008-11-26 21:15 :0.0
jinx Robert Gabriel pts/1 2008-11-26 22:28 :0.0
jinx@laptop:~$

As you can see there are 3 users logged in, but this commands see 4.

Please check, Thank you

Angel Abad (angelabad)
affects: ubuntu → eglibc (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.