Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Dec 2004 16:53:17 +0900 (JST)
From:      Tod McQuillin <devin@spamcop.net>
To:        =?ISO-8859-2?Q?Kov=E1cs_P=E9ter?= <kovacspeter2@freemail.hu>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Logging out the user
Message-ID:  <20041216165055.D81000@plexi.pun-pun.prv>
In-Reply-To: <freemail.20041116084909.10380@fm16.freemail.hu>
References:  <freemail.20041116084909.10380@fm16.freemail.hu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 16 Dec 2004, [ISO-8859-2] Kov$Ba(Bcs P$Bi(Bter wrote:

> Sorry for this newbie question, but I don't know how I can
> do this.
> When I type "who" at the command prompt I can see the active
> users.
> How can I kill a user from that list?

The second column in the output from 'who' shows the tty the user is 
logged in from, for example, 'ttyp1'.

You can find the processes attached to that tty with 'ps tp1'

Then you can kill those processes (start with SIGHUP) ...
'kill -HUP ####'

> There are some users whos process has stuck. How can I kill
> those as well?

ps -Uusername

then kill as above.
-- 
Tod McQuillin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041216165055.D81000>