From owner-freebsd-questions Thu Mar 8 15:45:24 2001 Delivered-To: freebsd-questions@freebsd.org Received: from gdmckee.local (pc-62-30-209-11-so.blueyonder.co.uk [62.30.209.11]) by hub.freebsd.org (Postfix) with ESMTP id AEE3637B718 for ; Thu, 8 Mar 2001 15:45:21 -0800 (PST) (envelope-from freebsd@gdmckee.com) Received: from [192.168.0.5] (helo=p300) by gdmckee.local with smtp (Exim 3.22 #1) id 14bA5m-0006Ey-00; Thu, 08 Mar 2001 23:45:10 +0000 Message-ID: <006e01c0a829$e044baa0$0500a8c0@gdmckee.local> From: "G D McKee" To: "Jonathan Chen" Cc: "freebsd-questions" References: <005301c0a827$48782c40$0500a8c0@gdmckee.local> <20010309123938.A53073@itouchnz.itouch> Subject: Re: w - reporting wrongly Date: Thu, 8 Mar 2001 23:45:37 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi That did the trick. Thanks very much. Gordon ----- Original Message ----- From: "Jonathan Chen" To: "G D McKee" Cc: "freebsd-questions" Sent: Thursday, March 08, 2001 11:39 PM Subject: Re: w - reporting wrongly > On Thu, Mar 08, 2001 at 11:27:03PM -0000, G D McKee wrote: > > Hi > > > > w is saying a user is logged in that is not. I have done a ps aux | grep p3 > > and there are not processes assigned to that command. How can I get the > > user logged off. It says they have been idle for 2 days. > > This is due to a corrupted /var/run/utmp. You should be able to take > the machine down to single user, and: > > # cp /dev/null /var/run/utmp > > and that should take care of it. > -- > Jonathan Chen > ----------------------------------------------------------------------- > "One, with God, is always a majority, but many a martyr has been burned > at the stake while the votes were being counted." -- Thomas B. Reed > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message