Force a UNIX or Linux User to Logout

Posted on October 17, 2008 by nseidm1.
Categories: UNIX, kill, linux, logout, user, who, zombie.

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.

Share, Enjoy, and Support:
  • Digg
  • del.icio.us
  • NewsVine
  • StumbleUpon
  • Technorati