Re: my (simple) sudoers doesn't work
On Fri, Jul 30, 2010 at 12:43:04PM +0200, Gauthier Vandemoortele wrote:
> Hello,
>
> I wish to halt|shutdown| sleep my machine as an unprivilegied user on
> the command-line or via the menu of a light window-manager.
>
> Here's my /etc/sudoers
>
> Defaults env_reset
>
> # User alias specification
> User_Alias STOP = gv
>
> # Cmnd alias specification
> Cmnd_Alias SLEEP = /usr/sbin/acpitool -S
> Cmnd_Alias HALT = /usr/sbin/halt
> Cmnd_Alias REBOOT = /usr/sbin/reboot
>
Try putting a wildcard at the end. Presumably you're actually running
something like "halt now", correct? So sudoers, I think, should show
the command as "/usr/sbin/halt *"
-Rob
Reply to: