Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Mar 2001 12:39:38 +1300
From:      Jonathan Chen <jonathan.chen@itouch.co.nz>
To:        G D McKee <freebsd@gdmckee.com>
Cc:        freebsd-questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: w - reporting wrongly
Message-ID:  <20010309123938.A53073@itouchnz.itouch>
In-Reply-To: <005301c0a827$48782c40$0500a8c0@gdmckee.local>; from freebsd@gdmckee.com on Thu, Mar 08, 2001 at 11:27:03PM -0000
References:  <005301c0a827$48782c40$0500a8c0@gdmckee.local>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <jonathan.chen@itouch.co.nz>
-----------------------------------------------------------------------
"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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010309123938.A53073>