How to kick off a user on a Linux box?

I want to kick off a user such as "bob" on a Linux box which I managed remotely. How to do this?

bob may log on the Linux box by various ways:

  1. Log on the screen on the Linux box (locally) with a X server.

  2. Log on remotely by a ssh shell.

  3. Log on by ssh -X with X windows.

  4. Started a vnc session and log on it.

I am managing the Linux box remotely via a ssh session (I have root password).

asked Dec 7, 2014 by anonymous

1 Answer

Just do this:

# killall -u bob

It will kill all processes that user bob owns.

Check the manual of killall for more information: killall manual.

answered Dec 7, 2014 by Eric Z Ma (44,280 points)

Please log in or register to answer this question.

Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost

...