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

Re: Shutdown w/o root password.



Gabriel wrote:

> Why I don't need to supply the root password to shutdown the computer
> from gnome?...
> I've been searching for any option related but didn't find any.
> 
> 
> Any idea?
> 
I don't use gnome, but here's one way.  If /etc/sudoers includes:

username  ALL=NOPASSWD:  /sbin/halt

and the shutdown calls sudo halt

... then username won't be asked.




Reply to: