Jeetendra Mirchandani | 13 Jul 2004 20:08
Picon
Favicon

w and who dont match


I have a FC1 system up since 45 days

the 'w' command says 33 users logged in, but shows only 8
where as who shows all 33 users

all of these 33 users are not actually logged in....

finger user-X
shows that user-X is logged in 3 times, which is wrong
he is logged in only once...

what is the problem? (I dont want to reboot!)

PS: I am not a member of the list, so please CC the reply to me

Regards,
Jeetu

---------------------------------------------------------------------
  Jeetendra Mirchandani,        Hostel : H12, C-Wing, Room 616
  Graduate Student,             Lab Ph : (+91 22) 25764705, 25764733
  CSE, IIT Bombay,              Mobile : (+91) 98208 78028
  Powai, Mumbai,                E-mail : jeetu[at] cse.iitb.ac.in
  INDIA.                        HomePg : www.cse.iitb.ac.in/jeetu
---------------------------------------------------------------------
Paul Eggert | 24 Jul 2004 09:58
Favicon

Re: w and who dont match

Jeetendra Mirchandani <jeetu <at> cse.iitb.ac.in> writes:

> I have a FC1 system up since 45 days
>
> the 'w' command says 33 users logged in, but shows only 8
> where as who shows all 33 users
>
> all of these 33 users are not actually logged in....
> ...
> what is the problem? (I dont want to reboot!)

Thanks for your bug report.  Possibly your problem is that your utmp
file is corrupted.  Once this happens, different applications respond
differently to the contents of the file.  If one of your
utmp-modifying applications (xterm, login, sshd, etc.) is buggy, and
is modifying the utmp file inappropriately, then the solution is to
find and fix the application in question.

The GNU/Linux utmp file format has changed with time, and the problem
could be caused if you are using an older application that doesn't
understand the current format.  Often you can work around this problem
merely by recompiling and/or relinking the application.

This tends to be a fairly common problem with Fedora Core; e.g., see:
<https://bugzilla.redhat.com/bugzilla/long_list.cgi?buglist=125589> (a
bug in sshd) and <http://fedoranews.org/updates/FEDORA-2004-181.shtml>
(a bug in finger).

It's also quite possible that this is a bug in coreutils, but if so
we'll need to know more details, e.g., a copy of the utmp file that is
(Continue reading)


Gmane