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 |