Logging out the user

Tod McQuillin devin at spamcop.net
Wed Dec 15 23:53:21 PST 2004


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


More information about the freebsd-stable mailing list