From owner-freebsd-questions Mon Apr 13 14:12:21 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA19218 for freebsd-questions-outgoing; Mon, 13 Apr 1998 14:12:21 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from sumatra.americantv.com (sumatra.americantv.com [207.170.17.37]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA19074 for ; Mon, 13 Apr 1998 21:12:00 GMT (envelope-from jlemon@americantv.com) Received: from right.PCS (right.PCS [148.105.10.31]) by sumatra.americantv.com (8.8.5/8.8.5) with ESMTP id QAA18515; Mon, 13 Apr 1998 16:11:55 -0500 (CDT) Received: (from jlemon@localhost) by right.PCS (8.6.13/8.6.4) id QAA21141; Mon, 13 Apr 1998 16:11:23 -0500 Message-ID: <19980413161122.56029@right.PCS> Date: Mon, 13 Apr 1998 16:11:22 -0500 From: Jonathan Lemon To: Dima Dorfman Cc: Cliff Addy , freebsd-questions@FreeBSD.ORG Subject: Re: Forced logoff References: <3.0.5.32.19980413132956.00969d80@207.213.224.25> <3.0.5.32.19980413134702.00962cc0@207.213.224.25> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.61.1 In-Reply-To: <3.0.5.32.19980413134702.00962cc0@207.213.224.25>; from Dima Dorfman on Apr 04, 1998 at 01:47:02PM -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Apr 04, 1998 at 01:47:02PM -0700, Dima Dorfman wrote: > That's not really what I'm looking for. Let's say, there is a user that is > about to break into your system. You _could_ use 'shutdown -k', but let's > say that your boss is writing a very important document, and he's not > autosaving it. You log everyone off, and your boss kills you because he > needs to write it all over again. > > I'm looking to kick one user at a time. ps -aux | awk '$1 == "username" { print $2 }' | xargs kill Will happily kill every process belonging to a specific user. -- Jonathan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message