From: Bill Marcum on 5 May 2010 20:19 On 2010-05-05, laredotornado <laredotornado(a)zipmail.com> wrote: > Hi, > > I"m using Mac 10.6.3. I have added this entry to my /etc/sudoers > file ... > > 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 > restart' > > 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 APACHECTL needs to be defined as an alias, or change the user entry to davea ALL = NOPASSWD: /usr/bin/apachectl
|
Pages: 1 Prev: find with -perm /u+w Next: Copy multiple datasets using Orchadmin(Data Stage utility) |