Shutdown and Reboot override

Dan Ritter dsr at tao.merseine.nu
Tue Mar 27 12:21:44 EDT 2007


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.




More information about the Discuss mailing list