Gentoo Archives: gentoo-user

From: Willie Wong <wwong@×××××××××.edu>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] # users gives strange results
Date: Tue, 21 Mar 2006 00:08:39
Message-Id: 20060320235156.GA28741@math.Princeton.EDU
In Reply to: [gentoo-user] # users gives strange results by Matthias Langer
1 On Mon, Mar 20, 2006 at 04:51:31AM +0100, Matthias Langer wrote:
2 > Recently i've got a power failure while one of my gentoo boxes was up
3 > and running. Since then, the users command seems not to work correctly
4 > anymore, as it claims for users to be logged in that almost certainly
5 > aren't and don't have a single process running. Besides of this issue,
6 > everthing seems to work as expected. Can anybody here tell me where to
7 > look for the source of this problem ?
8 >
9 > Thanks, Matthias
10 >
11
12 I am running into a similar problem recently. I found out that sometimes, after
13 updating 'system', init would restart. During an recent upgrade, after init
14 restarts, the users that were logged-in at that time become "ghosts" of some sort.
15 'w' would show the correct number of people logged in, but some other commands
16 won't. It might have something to do with the fact that wtmp is not registering the
17 logouts from thost users. If I issue 'last | head' i would see something to that
18 effect.
19
20 I am wondering perhaps removing /var/log/wtmp would solve the issue (you might also
21 want to touch /var/log/wtmp afterwards). It might require a rebooting (which I haven't
22 gotten around to doing).
23
24 Best,
25
26 W
27 --
28 Willie W. Wong
29 wwong@××××××××××××××.edu
30 brought to you by the Roman letter i, the Hebrew letter \aleph, the Greek
31 letter \pi, and the non-letter \hbar
32 --
33 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] # users gives strange results Matthias Langer <mlangc@×××.at>