Thursday, April 7, 2011

How to Kill User Session in Linux

This command will be useful if in case your user is doing something “naughty” and you want to kill them this is how you do it:

How to stop and halt (pause) the user

# skill -STOP -u username

How to continue the halted user

# skill -CONT -u username

How to Kill and make them logout from the computer

# skill -KILL -u username

How to kill all the user in the system

# skill -KILL -v /dev/pts/*

Hope this will be useful for some of you to who have some difficult time with the user.

0 comments:

Post a Comment