Gentoo Archives: gentoo-user

From: Matthias Langer <mlangc@×××.at>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] # users gives strange results
Date: Tue, 21 Mar 2006 01:51:37
Message-Id: 1142905568.9400.16.camel@sputnik886.ruz-net
In Reply to: Re: [gentoo-user] # users gives strange results by Rick van Hattem
1 On Mon, 2006-03-20 at 10:32 +0100, Rick van Hattem wrote:
2 > On Monday 20 March 2006 05:02, Matthias Langer wrote:
3 > > On Mon, 2006-03-20 at 04:51 +0100, Matthias Langer wrote:
4 > > > Recently i've got a power failure while one of my gentoo boxes was up
5 > > > and running. Since then, the users command seems not to work correctly
6 > > > anymore, as it claims for users to be logged in that almost certainly
7 > > > aren't and don't have a single process running. Besides of this issue,
8 > > > everthing seems to work as expected. Can anybody here tell me where to
9 > > > look for the source of this problem ?
10 > >
11 > > Just for the case that this helps describing my problem:
12 > >
13 > > # users
14 > > mlangc mlangc
15 > >
16 > > [should be: rattan]
17 > >
18 > > # top
19 > > not a single process for mlangc
20 > >
21 > > # tail -n 400 /var/log/messages
22 > >
23 > > Mar 19 22:21:37 lgate886 login(pam_unix)[8674]: session opened for user
24 > > mlangc by (uid=0)
25 > > ...
26 > > ...
27 > > Mar 19 22:21:47 lgate886 (mlangc-8784): starting (version 2.12.1), pid
28 > > 8784 user 'mlangc'
29 > > ...
30 > > ...
31 > > Mar 20 00:02:45 lgate886 (mlangc-8784): Exiting
32 > > Mar 20 00:02:50 lgate886 login(pam_unix)[8674]: session closed for user
33 > > mlangc
34 > > Mar 20 04:29:35 lgate886 sshd[9620]: Accepted keyboard-interactive/pam
35 > > for rattan from 192.168.0.102 port 41237 ssh2
36 > > Mar 20 04:29:35 lgate886 syslog-ng[5304]: STATS: dropped 0
37 > > Mar 20 04:29:35 lgate886 sshd(pam_unix)[9626]: session opened for user
38 > > rattan by (uid=0)
39 > > Mar 20 04:30:29 lgate886 su[9634]: Successful su for root by rattan
40 > > Mar 20 04:30:29 lgate886 su[9634]: + pts/0 rattan:root
41 > > Mar 20 04:30:29 lgate886 su(pam_unix)[9634]: session opened for user
42 > > root by (uid=1002)
43 > Perhaps you could try booting in single user mode (or a livecd or something
44 > like that) and remove /var/log/utmp and /var/log/wtmp
45 > Those are the files that track who is logged on and who isn't, perhaps you can
46 > also delete/rename those while running but I'm not sure what results you'll
47 > get and I'm not gonna try on one of my boxes :P
48
49 Thanks, i tried to remove /var/log/wtmp [/var/log/utmp doesn't exist on
50 my box], but that did not help (see my other reply).
51
52 --
53 gentoo-user@g.o mailing list

Replies

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