How to kick off a user on a Linux box?
Posted on In QAI 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:
-
Log on the screen on the Linux box (locally) with a X server.
-
Log on remotely by a ssh shell.
-
Log on by
ssh -X
with X windows. -
Started a vnc session and log on it.
I am managing the Linux box remotely via a ssh session (I have root password).
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.