On Mon, Mar 20, 2006 at 04:51:31AM +0100, Matthias Langer wrote:
> Recently i've got a power failure while one of my gentoo boxes was up
> and running. Since then, the users command seems not to work correctly
> anymore, as it claims for users to be logged in that almost certainly
> aren't and don't have a single process running. Besides of this issue,
> everthing seems to work as expected. Can anybody here tell me where to
> look for the source of this problem ?
> 
> Thanks, Matthias
> 

I am running into a similar problem recently. I found out that sometimes, after
updating 'system', init would restart. During an recent upgrade, after init 
restarts, the users that were logged-in at that time become "ghosts" of some 
sort. 
'w' would show the correct number of people logged in, but some other commands 
won't. It might have something to do with the fact that wtmp is not registering 
the 
logouts from thost users. If I issue 'last | head' i would see something to 
that 
effect. 

I am wondering perhaps removing /var/log/wtmp would solve the issue (you might 
also
want to touch /var/log/wtmp afterwards). It might require a rebooting (which I 
haven't
gotten around to doing).

Best, 

W
-- 
Willie W. Wong
[EMAIL PROTECTED]
brought to you by the Roman letter i, the Hebrew letter \aleph, the Greek
letter \pi, and the non-letter \hbar
-- 
gentoo-user@gentoo.org mailing list

Reply via email to