[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to Shutdown as a normal user?



On Tuesday 14 September 2004 13:38, Pradeeper wrote:
> Hi All
>
> Is there a way to shutdown my Debian Sarge box without giving root
> password (as a normal user)?

#apt-get install sudo

...and then edit /etc/sudoers to something similar: (this gives user 
"alex" shutdown/reboot privileges)

# Cmnd alias specification
Cmnd_Alias SHUT = /sbin/poweroff, /sbin/reboot

# User privilege specification
root    ALL=(ALL) ALL
alex    ALL=(ALL) NOPASSWD: SHUT

-A



Reply to: