who or w commandsand then you can get the user PID
ps aux | grep username or ttyand kill it
kill -KILL PIDor you can use pkill command and kill the user by its username
pkill -KILL -u usernameIt would be nice to send the users a warning message before logging them out.
No comments:
Post a Comment