Hi,
I prefer to configure sudeors such that my user (and any other users
in the ``powermanagement'' group) can run the basic power management
commands without sudo.
At present, I have the following entry in /etc/sudoers (note that it
is the last entry in the sudoers file):
%powermanagement ALL=(ALL:ALL) NOPASSWD: <store path to
shepherd/sbin/halt>, NOPASSWD: <store path to shepherd/sbin/reboot>
Additionally, my user is in group powermanagement.
Now, when I attempt to run just halt or reboot, I get a permission
error on the shepherd socket (/var/run/shepherd/socket):
halt: error: /var/run/shepherd/socket: permission denied
This may be a misunderstanding on my part of how shepherd/sudoers
works -- any suggestions would be appreciated.
Ben