Date: Fri, 7 Sep 2007 06:43:33 GMT From: "gs_stoller@juno.com" <gs_stoller@juno.com> To: hakmi@rogers.com Cc: robin@reportlab.com, freebsd-questions@freebsd.org Subject: RE: temporary su login Message-ID: <20070907.024333.14087.0@webmail04.dca.untd.com>
next in thread | raw e-mail | index | archive | help
Tamouh wrote: >> 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 clean= ly and once it hit = > does the intial reset, turn it off. Yes, CTRL+ALT+DEL will reboot the server cleanly, but it does not shutdown the previous session nicely, it shuts it down catastrophically, and it can be done by anyone with access to the system keyboard. Robin asked for a way to allow one specific non-root user to be able to shutdown the system.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070907.024333.14087.0>