From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.54) id 1FLWTZ-0007gQ-Ue for garchives@archives.gentoo.org; Tue, 21 Mar 2006 02:20:02 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5.20060308/8.13.5) with SMTP id k2L2J56G020525; Tue, 21 Mar 2006 02:19:05 GMT Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by robin.gentoo.org (8.13.5.20060308/8.13.5) with SMTP id k2L29H7w028948 for <gentoo-user@lists.gentoo.org>; Tue, 21 Mar 2006 02:09:17 GMT Received: (qmail invoked by alias); 21 Mar 2006 02:09:17 -0000 Received: from chello080108115144.1.11.univie.teleweb.at (EHLO sputnik886) [80.108.115.144] by mail.gmx.net (mp039) with SMTP; 21 Mar 2006 03:09:17 +0100 X-Authenticated: #28563408 Subject: Re: [gentoo-user] # users gives strange results From: Matthias Langer <mlangc@gmx.at> To: gentoo-user@lists.gentoo.org In-Reply-To: <1142905568.9400.16.camel@sputnik886.ruz-net> References: <1142826691.10246.6.camel@sputnik886.ruz-net> <1142827354.10246.14.camel@sputnik886.ruz-net> <200603201032.51100.Rick.van.Hattem@fawo.nl> <1142905568.9400.16.camel@sputnik886.ruz-net> Content-Type: text/plain Date: Tue, 21 Mar 2006 03:09:15 +0100 Message-Id: <1142906955.9400.20.camel@sputnik886.ruz-net> Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.4.2.1 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Archives-Salt: 0abef59e-7e1e-47b1-b0bb-b48d6287bb1a X-Archives-Hash: bbd67949b9fd6f6a15a17ce68e151870 On Tue, 2006-03-21 at 02:46 +0100, Matthias Langer wrote: > On Mon, 2006-03-20 at 10:32 +0100, Rick van Hattem wrote: > > On Monday 20 March 2006 05:02, Matthias Langer wrote: > > > On Mon, 2006-03-20 at 04:51 +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 ? > > > > > > Just for the case that this helps describing my problem: > > > > > > # users > > > mlangc mlangc > > > > > > [should be: rattan] > > > > > > # top > > > not a single process for mlangc > > > > > > # tail -n 400 /var/log/messages > > > > > > Mar 19 22:21:37 lgate886 login(pam_unix)[8674]: session opened for user > > > mlangc by (uid=0) > > > ... > > > ... > > > Mar 19 22:21:47 lgate886 (mlangc-8784): starting (version 2.12.1), pid > > > 8784 user 'mlangc' > > > ... > > > ... > > > Mar 20 00:02:45 lgate886 (mlangc-8784): Exiting > > > Mar 20 00:02:50 lgate886 login(pam_unix)[8674]: session closed for user > > > mlangc > > > Mar 20 04:29:35 lgate886 sshd[9620]: Accepted keyboard-interactive/pam > > > for rattan from 192.168.0.102 port 41237 ssh2 > > > Mar 20 04:29:35 lgate886 syslog-ng[5304]: STATS: dropped 0 > > > Mar 20 04:29:35 lgate886 sshd(pam_unix)[9626]: session opened for user > > > rattan by (uid=0) > > > Mar 20 04:30:29 lgate886 su[9634]: Successful su for root by rattan > > > Mar 20 04:30:29 lgate886 su[9634]: + pts/0 rattan:root > > > Mar 20 04:30:29 lgate886 su(pam_unix)[9634]: session opened for user > > > root by (uid=1002) > > Perhaps you could try booting in single user mode (or a livecd or something > > like that) and remove /var/log/utmp and /var/log/wtmp > > Those are the files that track who is logged on and who isn't, perhaps you can > > also delete/rename those while running but I'm not sure what results you'll > > get and I'm not gonna try on one of my boxes :P > > Thanks, i tried to remove /var/log/wtmp [/var/log/utmp doesn't exist on > my box], but that did not help (see my other reply). > Hmm, well, by $ strace users i found out that i have in fact the file /var/run/utmp; But removing this file did not solve my problem either ... -- gentoo-user@gentoo.org mailing list