From owner-freebsd-questions Mon Nov 4 3:34:17 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 993AB37B401 for ; Mon, 4 Nov 2002 03:34:16 -0800 (PST) Received: from users.munk.nu (213-152-51-194.dsl.eclipse.net.uk [213.152.51.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2EC5D43E7B for ; Mon, 4 Nov 2002 03:34:15 -0800 (PST) (envelope-from munk@users.munk.nu) Received: from users.munk.nu (localhost [127.0.0.1]) by users.munk.nu (8.12.5/8.12.3) with ESMTP id gA4BZi4g001167 for ; Mon, 4 Nov 2002 11:35:44 GMT (envelope-from munk@users.munk.nu) Received: (from munk@localhost) by users.munk.nu (8.12.5/8.12.3/Submit) id gA4BZidw001166 for freebsd-questions@freebsd.org; Mon, 4 Nov 2002 11:35:44 GMT Date: Mon, 4 Nov 2002 11:35:44 +0000 From: Jez Hancock To: FreeBSD questions List Subject: user dead but appears still logged in in 'w' output Message-ID: <20021104113544.GB1080@users.munk.nu> Mail-Followup-To: FreeBSD questions List Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > I have a problem with a user who was idle for a long period > of time which I killed off by terminating the associated > login process for that user's ssh connection. However > that user still appears in the output from 'w'. > > How can I remove the user from 'w' output? Ok, I've just logged in multiple times on a ttyp until I logged in on the tty occupied by the ghost and the w entry was removed. (The user was logged in on ttyp2, so I logged in on ttyp0, p1 and then on logging in on p2 the ghost was removed). Is there an easier way? > I've just installed 'idled' so hopefully it won't happen > in future ;) Maybe this is the 'easier' way eh? We shall see Cheers anyway, Jez To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message