on Wed, Jan 02, 2002 at 07:10:19PM +0100, Markus Grunwald ([EMAIL PROTECTED]) 
wrote:
> Hi,
> 
> > I use my computer as a workstation and thus I think it would be a good idea
> > to be able to switch it of as user without being root.
> > [.1).]make it sudo-able
> > [.2).]put the executable into a special group
> AFAIR, putting shutdown in a group will not work. You'll have to add the SUID 
> Bit as well, which is quite never a good idea.
> 
> I use the sudo approach and am quite lucky with it.
> Therefore i have these lines in /etc/sudoers:
> 
> User_Alias      SHUTDOWNERS=markus
> # Cmnd alias specification
> Cmnd_Alias      SHUTDOWN=/sbin/shutdown -[hkr] now
> # User privilege specification
> SHUTDOWNERS     ALL=SHUTDOWN,NOPASSWD: ALL

This is the Right Way® to do this.  The action can be bound to a tile or
simple widget as well.  Desktop environments (GNOME/KDE) often provide
an option for the user to shut down as well.

Me?  I leave my systems up pretty much full time.  Power draw from the
CPU itself is low (the monitor is another story), and the advantages of
having the system up are to my benefit.

Peace.

-- 
Karsten M. Self <kmself@ix.netcom.com>        http://kmself.home.netcom.com/
 What part of "Gestalt" don't you understand?              Home of the brave
  http://gestalt-system.sourceforge.net/                    Land of the free
We freed Dmitry! Boycott Adobe! Repeal the DMCA! http://www.freesklyarov.org
Geek for Hire                      http://kmself.home.netcom.com/resume.html

Attachment: pgpz608dF2VVl.pgp
Description: PGP signature

Reply via email to