Thread: halt for users
View Single Post

   
  #15 (permalink)  
Old 02-19-2008, 12:39 PM
chud
 
Posts: n/a
Default Re: halt for users

On Wed, 23 Jun 2004 15:58:25 +0200, Tallis wrote:

> Yes I tried this but probably I've got problems with sudoers file syntax.
> I tried examples from man pages and still got problems. Can you show me a
> good example.


Here's the relevant stuff from my /etc/sudoers,


# User alias specification
User_Alias CHUDADMIN = chud

# Cmnd alias specification
Cmnd_Alias HLT = /sbin/halt
Cmnd_Alias RBOOT = /sbin/reboot

# Defaults specification

# User privilege specification
root ALL=(ALL) ALL
CHUDADMIN ALL = NOPASSWD: HLT,RBOOT


Reply With Quote