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:
Log on the screen on the Linux box (locally) with a X server.
Log on by
ssh -Xwith 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.