From owner-freebsd-questions Thu Mar 8 15:40:27 2001 Delivered-To: freebsd-questions@freebsd.org Received: from itouch.co.nz (itouch.co.nz [203.99.66.188]) by hub.freebsd.org (Postfix) with ESMTP id 443B437B718 for ; Thu, 8 Mar 2001 15:40:23 -0800 (PST) (envelope-from jonc@itouch.co.nz) Received: (from jonc@localhost) by itouch.co.nz (8.11.2/8.11.1) id f28NddG53180; Fri, 9 Mar 2001 12:39:39 +1300 (NZDT) (envelope-from jonc) Date: Fri, 9 Mar 2001 12:39:38 +1300 From: Jonathan Chen To: G D McKee Cc: freebsd-questions Subject: Re: w - reporting wrongly Message-ID: <20010309123938.A53073@itouchnz.itouch> References: <005301c0a827$48782c40$0500a8c0@gdmckee.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <005301c0a827$48782c40$0500a8c0@gdmckee.local>; from freebsd@gdmckee.com on Thu, Mar 08, 2001 at 11:27:03PM -0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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