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
