I had this happen and I fixed it by doing this:

Kick everyone off the machine, with only one user do

cat /dev/null > /var/run/utmp
logout

Then login again...
`who` should report correct information

/B


----- Original Message -----
From: "Reuben D. Budiardja" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 31, 2003 08:56
Subject: Fixing a corrupt utmp


>
> Hello,
> Anyone knows how to fix a corrupted utmp files? Reboot most likely fix it,
but
> I am trying not to reboot the machine (yeah.. i am trying to compete my
> uptime with other people :) ).
>
> As to how my utmp file corrupted at the first place, please refer to my
other
> post under the subject "log-out a user - How To".
>
> Thanks for any help.
>
> RDB
>
> --
> -------------------------------------------------
> /"\  ASCII Ribbon Campaign against HTML
> \ /  email and proprietary format
>  X   attachments.
> / \
> -------------------------------------------------
> Have you been used by Microsoft today?
> Choose your life. Choose freedom.
> Choose LINUX.
> -------------------------------------------------
>
>
>
> --
> redhat-list mailing list
> unsubscribe mailto:[EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to