[Gllug] Having trouble adding NOPASSWD line to sudoers
Benjamin Goodacre
roger at rabbit.name
Mon Nov 16 10:03:44 UTC 2009
Dear all,
I am having trouble adding a line to sudoers that will allow a specific
user to reload BIND without being asked for a password. This would allow
me to reload all my BIND servers using a script from one machine.
I looked up the syntax here:
https://help.ubuntu.com/community/Sudoers
and implemented the following line:
user ALL=(ALL) NOPASSWD: /usr/sbin/rndc
However now ALL commands using sudo are allowed to be run without a
password.
I have also tried a similar syntax:
user ALL=NOPASSWD: /usr/sbin/rndc
which has the same effect. I have tried referencing the init.d script in
case for some reason it does not like the rndc command.
Thanks,
Benjamin
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list