Forcing a User Logout on Linux
When managing a Linux system remotely, you sometimes need to terminate all sessions for a specific user—whether they’re logged in locally at the console, via SSH, through X11 forwarding, VNC, or any other method. Here’s how to do it. Quick Answer To terminate all processes for a user named bob: killall -u bob This kills…
