If you have a zombie user logged into a server, or you want to force a user to logout use the “who” command. Type “w” or “who” in a command prompt to see which users are logged in, and then use the pkill command to force them out. pkill -KILL -u “username” Pop in a particular username and boot them out the door.
500 Error Joomla »« Yahoo Domain Hosting 3X the Price
WARNING: by all means DON’T use this on Root cuz it kills -everything- running under Root’s name, requiring a reboot !
At least on my Debian 6 Dedicated Machine I couldn’t connect by any means, so I had to use remote reboot.
I wish I would’ve read your comment earlier
Of course just did
pkill -KILL -u root
and had to reboot the machine ;p
“pkill -KILL -u username” sends the unforgiving KILL signal to all processes owned by that user. So, OK, it logs the user off, as a side effect, but it does a lot more! Use wisely. To just logoff someone, kill his shell process. Find it with “ps u username”.