Slay, the quick way to boot a problem user off the system

Slay, the quick way to boot a problem user off the system

Postby bigbear » Mon Jul 20, 2009 10:24 pm

http://freshmeat.net/urls/c0c1665444a2c8bcdd0b6ab11f6118df

Slay is a simple yet very handy shell script that kills all of the processes belonging to a specific user and displays an (optional) "Your current session has been terminated." to the user being booted.


So you say that there is someone logged into a computer/system that is a "problem user"?

How do you quickly get rid of the users processes and get them off the system without running down all the processes one by one with the 'ps -' command?

easy, add this dandy script 'slay' to your arsenal, especially handy on LTSP and other distributed access servers.

once the user has been effectively 'booted, you the admin can then lock or delete the users account at your discretion.


To use 'slay' you enter the command and the user name at the prompt

Code: Select all
$slay baduser


depending on the 'attitude' or mode you choose ( in /etc/slay_mode) you can have slay be 'nice' 'normal', 'mean' or even 'butthead'

you'll want to make sure only admins have permissions to use this script as juvenile users may try to use it to boot each other.

Big Bear
bigbear
Site Admin
 
Posts: 281
Joined: Wed Mar 11, 2009 9:21 pm

Return to Command Line Basics

Who is online

Users browsing this forum: No registered users and 1 guest

cron