we are running hudson to monitor a couple of shell jobs. The problem is that hudson runs all jobs as user "hudson".
That's ok, except for some special commands that require super user rights, like "chown" and "apachectl" We have the following inour sudoers file: (visudo)
Defaults:hudson !requiretty %hudson ALL = NOPASSWD: /usr/sbin/apachectl, /bin/chown
But this gives us the following error when we want to call apachectl -k graceful in our shell script:
sudo: no tty present and no askpass program specified
Does anyone have any idea on how we can solve this?