From owner-freebsd-questions Mon Nov 4 6:54:48 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 D6D4337B401 for ; Mon, 4 Nov 2002 06:54:47 -0800 (PST) Received: from server.rucus.ru.ac.za (server.rucus.ru.ac.za [146.231.115.1]) by mx1.FreeBSD.org (Postfix) with SMTP id 1B68743E4A for ; Mon, 4 Nov 2002 06:54:44 -0800 (PST) (envelope-from drs@rucus.ru.ac.za) Received: (qmail 90973 invoked from network); 4 Nov 2002 14:54:32 -0000 Received: from bashir.dsl.ru.ac.za (146.231.113.19) by server.rucus.ru.ac.za with SMTP; 4 Nov 2002 14:54:32 -0000 Received: (qmail 1137 invoked by uid 1001); 4 Nov 2002 14:54:33 -0000 Date: Mon, 4 Nov 2002 16:54:33 +0200 From: David =?iso-8859-1?Q?Sieb=F6rger?= To: Jez Hancock Cc: FreeBSD questions List Subject: Re: user dead but appears still logged in in 'w' output Message-ID: <20021104145433.GA755@rucus.ru.ac.za> References: <20021104113544.GB1080@users.munk.nu> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20021104113544.GB1080@users.munk.nu> 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 On Mon 2002-11-04 (11:35), Jez Hancock wrote: > > 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? Send the user's shell a SIGHUP and (in most cases) it'll cleanly log itself out. -- David Siebörger drs@rucus.ru.ac.za To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message