Shell script sudo without password prompt under Darwin?
I have two systems, one running Fedora 8 and the other running Darwin 8.11.1. On both systems, I have edited /etc/sudoers to allow me to run sudo with no password from my user account. On both systems, I run a shell script that runs sudo, and I need the script to run unattended, which means that the sudo can not prompt for a password when the script runs. On the Fedora system, I accomplished this by commenting out the line "Defaults requiretty" in /etc/sudoers. However, on the Darwin system, /etc/sudoers has no such line to comment out, and the man page for sudoers says that the requiretty flag is off by default. Yet, when I run my shell script on the Darwin system, sudo still prompts for a password.
So, can anyone tell me what to do to allow a shell script sudo to run without a password prompt under Darwin? Thank you in advance to all who respond.