Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Shutdown and Reboot override



On Tue, Mar 27, 2007 at 11:49:43AM -0400, Rusty Shackleford wrote:
> Is there a way to override a reboot if another user issues it?  I have been
> working on a machine where multiple people are logged in as root or have the
> ability to and most of them act as if they are the only ones on the system
> and reboot and shutdown the machine.  If not override could I push out the
> time until it goes down?  I have been searching around for it and the few
> places that I saw that mention it say no but I thought I would throw it out
> there.

You have a people problem. Start by dealing with it in
peoplespace.

1. Write a policy on how to administer the machine. Publicize
it. Get people to agree with it as a condition for super-user
access.

2. Nobody should log in as root. They aren't accountable that
way. Require sudo; prevent root from logging it except at the
console.

3. Rename halt, reboot and shutdown. Write wrappers that issue
automatic wall messages, wait for 5 minutes, check the existence 
of a file (/etc/noshutdown?) and then continue or not.

-dsr-

-- 
.. .----. --   .-. . .- -.. .. -. --.   -.-- --- ..- .-.   -- .- .. .-.. .-.-.-   .-- .... ---   . .-.. ... .   .. ... ..--.. 
http://tao.merseine.nu/~dsr/eula.html is hereby incorporated by reference.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.





BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org