passwordless sudo to restart dhcpd
hi,
I'm trying to get sudo allow a passwordless restart/start/stop of dhcpd/bind
I add a user 'rde' to the sudo group
then use visudo to add a line like this...
%rde ALL= NOPASSWD: /etc/init.d/dhcp3-server
when I run
> /etc/init.d/dhcp3-server restart
I get this error which is attributed to not having privs on the .pid file and lease files, etc.
dhcpd self-test failed. Please fix the config file.
The error was:
drop_privileges: could not set group id: Operation not permitted
Now, since using sudo to run that commmand doesn't run that problem, how can I replicate that without requiring a password?
any suggestions are helpful.
Thanks.
|