From owner-freebsd-questions Tue Jun 18 3:34:36 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mail.thundernet.cz (mail.thundernet.cz [62.77.87.114]) by hub.freebsd.org (Postfix) with SMTP id 08BD037B423 for ; Tue, 18 Jun 2002 03:34:15 -0700 (PDT) Received: (qmail 22952 invoked from network); 18 Jun 2002 10:32:44 -0000 Received: from unknown (HELO freepuppy.bellavista.cz) (62.168.44.50) by mail.thundernet.cz with SMTP; 18 Jun 2002 10:32:44 -0000 Received: (from roman@localhost) by freepuppy.bellavista.cz (8.11.6/8.11.6) id g5IAbCi76576; Tue, 18 Jun 2002 12:37:12 +0200 (CEST) (envelope-from neuhauser@bellavista.cz) X-Authentication-Warning: freepuppy.bellavista.cz: roman set sender to neuhauser@bellavista.cz using -f Date: Tue, 18 Jun 2002 12:37:12 +0200 From: Roman Neuhauser To: Mike Galvez Cc: freebsd-questions Subject: Re: kicking users Message-ID: <20020618103712.GE64435@freepuppy.bellavista.cz> Mail-Followup-To: Mike Galvez , freebsd-questions References: <20020617160156.GD64435@freepuppy.bellavista.cz> <20020617124516.D32772@mail.virginia.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020617124516.D32772@mail.virginia.edu> User-Agent: Mutt/1.3.99i 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 > Date: Mon, 17 Jun 2002 12:45:16 -0400 > From: Mike Galvez > To: Roman Neuhauser > Cc: freebsd-questions > Subject: Re: kicking users > > On Mon, Jun 17, 2002 at 06:01:56PM +0200, Roman Neuhauser wrote: > > How can I "kick" a user that is logged on the host? > > kill -9 `ps -aux | awk '$1 ~/username/ {print $2}'` great, this is exactly what I was looking for (well, actually I was convinced there'd be a command for this; the first thing I tried was `man kick`, and now I have it :) thanks! -- FreeBSD 4.5-STABLE 12:33PM up 15 days, 2:22, 12 users, load averages: 0.00, 0.00, 0.00 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message