From owner-freebsd-questions Sat Aug 25 22:32:21 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.halplant.com (24-168-203-47.wo.cox.rr.com [24.168.203.47]) by hub.freebsd.org (Postfix) with ESMTP id 50C1437B409 for ; Sat, 25 Aug 2001 22:32:18 -0700 (PDT) (envelope-from A.J.Caines@halplant.com) Received: by mail.halplant.com (Postfix, from userid 1001) id F3E891FD8; Sun, 26 Aug 2001 01:32:05 -0400 (EDT) Date: Sun, 26 Aug 2001 01:32:05 -0400 From: Andrew J Caines To: questions@freebsd.org Subject: Re: logging out a ghost user Message-ID: <20010826013205.A441@hal9000.servehttp.com> Reply-To: Andrew J Caines Mail-Followup-To: questions@freebsd.org References: <20010826002259.W451-100000@bsduser.ca> <20010826143647.B29422@k7.mavetju.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010826143647.B29422@k7.mavetju.org>; from edwin@mavetju.org on Sun, Aug 26, 2001 at 02:36:47PM +1000 Organization: H.A.L. Plant X-Powered-by: FreeBSD 4.4-RC X-PGP-Fingerprint: C59A 2F74 1139 9432 B457 0B61 DDF2 AA61 67C3 18A1 Importance: Normal 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 To add a note to Edwin Groothuis's comment... > With the ps-utility you can an overview of all your processes: > [~] edwin@mud>ps > PID TT STAT TIME COMMAND > 57709 p0 Ss 0:00.04 -bash (bash) > 57720 p0 R+ 0:00.00 ps > 57713 p1 Ss+ 0:00.03 -bash (bash) > > As you see, the ps command is invoken from TTY p0, so all the other > processes of me running on something else than p0 are invalid. You > can kill them with "kill PID", for example "kill 57713" or if they > don't want to die "kill -9 57713". When killing a login shell such as this, you should send a HUP. A TERM will be caught and ignored and a KILL should always be a last resort. -Andrew- -- ______________________________________________________________________ | -Andrew J. Caines- Unix Systems Engineer A.J.Caines@halplant.com | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message