Skip to content

Instantly share code, notes, and snippets.

@itspriddle
Created March 21, 2010 04:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save itspriddle/339077 to your computer and use it in GitHub Desktop.
Save itspriddle/339077 to your computer and use it in GitHub Desktop.
# Add the below to /etc/sudoers (use visudo as root)
# to allow `sudo apachectl [action]` without
# the need for a password
# Cmnd alias specification
Cmnd_Alias APACHECTL = /usr/sbin/apachectl
# User privilege specification
%admin ALL=NOPASSWD: APACHECTL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment