Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Jul 1997 16:47:52 +0100 (BST)
From:      Stephen Roome <steve@visint.co.uk>
To:        Steve Hovey <shovey@buffnet.net>
Cc:        MP <marcin@v-m.com>, freebsd <isp@FreeBSD.ORG>
Subject:   Re: KICK the USER....
Message-ID:  <Pine.BSF.3.95.970722163305.10502C-100000@dylan.visint.co.uk>
In-Reply-To: <Pine.BSI.3.95.970722095706.682C-100000@buffnet11.buffnet.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <username> | 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/




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95.970722163305.10502C-100000>