temporary su login

Tamouh H. hakmi at rogers.com
Thu Sep 6 14:35:46 PDT 2007


> 
> Robin Becker wrote:
> > My collocation supplier is about to move our FreeBSD box and wants 
> > some way to shut it down cleanly. Is there a simple way to allow a 
> > non-root user to have shutdown rights without just giving them the 
> > world. At present I don't even allow login via ssh on that 
> box ie it's 
> > purely key based.
> 	What I would do is develop a script (owned by  root ) 
> and callable by everybody which then checks the  user-id  of 
> its caller, and if it is an acceptable one, the script will 
> issue a warning (to wall) and then shutdown the system.
> 

why not ask them to do CTRL+ALT+DEL which will reboot the server cleanly and once it hit does the intial reset, turn it off.

Tamouh




More information about the freebsd-questions mailing list