From owner-freebsd-isp Tue Jul 22 08:48:20 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id IAA05784 for isp-outgoing; Tue, 22 Jul 1997 08:48:20 -0700 (PDT) Received: from bagpuss.visint.co.uk (bagpuss.visint.co.uk [194.207.134.1]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id IAA05775 for ; Tue, 22 Jul 1997 08:48:13 -0700 (PDT) Received: from dylan.visint.co.uk (dylan.visint.co.uk [194.207.134.180]) by bagpuss.visint.co.uk (8.7.5/8.7.3) with SMTP id QAA14403; Tue, 22 Jul 1997 16:47:52 +0100 (BST) Date: Tue, 22 Jul 1997 16:47:52 +0100 (BST) From: Stephen Roome To: Steve Hovey cc: MP , freebsd Subject: Re: KICK the USER.... In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Tue, 22 Jul 1997, Steve Hovey wrote: > On Tue, 22 Jul 1997, MP wrote: > > > Is there a simple way to disconnect the USER if he is conected via. > > Telnet to the system... > > > > You can kill of his shell. how about somethink like.. foreach f (`ps axug | grep | awk '{print $2}'`) { kill -1 $f } Although that could have seriously bad side effects =) (and it's zsh, dunno if sh/csh etc. likes that) The package "skill" in the sysutils collection is more handy if you've got a lot of users, although you could just write a shell script... -- Steve Roome - Vision Interactive Ltd. Tel:+44(0)117 9730597 Home:+44(0)976 241342 WWW: http://dylan.visint.co.uk/