Security Basics mailing list archives

Re: Linux shutdown


From: Dave Aronson <spamtrap.secfocus () dja mailme org>
Date: Thu, 28 Oct 2004 06:53:15 +0000

Pablo Gietz <pablo.gietz () nuevobersa com ar> wrote:

Do you know how to do a Linux (clear) shutdown without root
privileges from login screen?
I want to give a user the privilege of shutdown the server without
being root.

This depends what kind of login screen you've got.  Plain text?  Forget 
it.  Graphical?  Depending exactly which, you may be able to config it 
so that shutdown (and possibly reboot, and some other system actions) do 
not require the root password.  However, that is generally not so 
fine-grained as to be on a per-user basis -- if he can, all can.

Try looking instead into setting up a group of users who can use certain 
commands, such as shutdown.  Check out sudo.

-- 
David J. Aronson
Work: http://destined.to/program
Play: http://listen.to/davearonson


Current thread: