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.

Advertisements

2 thoughts on “Kill User Session in Linux

  1. on my system skill(1) says:
    “DESCRIPTION
    These tools are probably obsolete and unportable. The command syntax is poorly defined. Consider using the killall, pkill, and pgrep commands instead.”

    killall, pkill, pgrep and skill are all part of the procps package.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s