From: laredotornado on 5 May 2010 09:16
I"m using Mac 10.6.3. I have added this entry to my /etc/sudoers
davea ALL = NOPASSWD:APACHECTL
and (when logged in as "davea"), I have this entry in my
~/.bash_profile file ...
alias restart='sh ~/Tomcat/bin/restart.sh; sudo /usr/sbin/apachectl
However when I run the "restart" command, I'm prompted for a password.
Where am I going astray? I thought adding myself to the /etc/sudoers
file would prevent password prompting.
Thanks, - Dave