Thursday, July 14, 2011

linux: how to log out users

ever had the need to logout/freeze anyone who's logged in your linux box? here's how:

get logged in users
$ who

then log the user out
$ skill -KILL -u <user>

you can also temorarily freeze the user
$ skill -STOP -u <user>

then allow the user to regain control
$ skill -CONT -u <user>

just make sure not to do this to your user ;D

No comments:

Post a Comment

SSH : No matching host key type found. Their offer: ssh-rsa,ssh-dss

Got this while connecting to my mikrotik router via ssh   Unable to negotiate with <ip address> port <ssh port>: no matching hos...