Configuring sudo to work without password

Posted by aidan on Server Fault See other posts from Server Fault or by aidan
Published on 2010-04-18T13:03:21Z Indexed on 2010/04/18 13:13 UTC
Read the original article Hit count: 404

Filed under:
|
|
|

I'm trying to configure sudo to allow all users to restart apache without having to enter a password.

Security concerns aside, why isn't this working?

I added the line to /etc/sudoers: %admin ALL=NOPASSWD: /usr/sbin/apache2ctl

$sudo -l
User aidan may run the following commands on this host:
    (root) NOPASSWD: /usr/sbin/apache2ctl
    (ALL) ALL

$sudo /usr/sbin/apache2ctl
[sudo] password for aidan:

Thanks for any help.

© Server Fault or respective owner

Related posts about sudo

Related posts about sudoers