How to Kill user in Linux
Greetings Guys..!!
Well if you want to kill some users process ( in unix/linux hosting) or if you want to terminate from the shell then you can use the following commands.
If you want the user jasons process details
ps -aux |grep jason
from the output just kill the process id of that user and that user will be out from the shell without any wall message for him/her.
By other way you can do following.
Task: How to halt/stop user called jason
Type the skill command as follows:
# skill -STOP -u jason
You muse be root to stop other users.
Task: How to resume already halted user called jason
Send CONT single to user jason, type the following command:
# skill -CONT -u jason
Task: How to kill and logout user called jason
You can send KILL single, type the following command:
# skill -KILL -u jason
Task: Kill and logout all users
The ultimate command to kill and logout all users, type the following command:
# skill -KILL -v /dev/pts/*
Please note that you should send users a warning message ora logout notice using the wall command to avoid data loss.
Enjoy..
Social Media Responsibility
12 years ago
No comments:
Post a Comment