I read all sudo posts on serverfault, but I still cannot figure out what I'm doing wrong. Normally I finally find the solution but not this time :
I want apache user to be able to execute this command as user "hremotessh" :
sudo /home/hremotessh/scripts/redirect.sh 8892 8893
Therefore I added this in visudo :
apache ALL=(hremotessh) NOPASSWD: /home/hremotessh/scripts/redirect.sh
But sudo is still asking the password ?
sudo /home/hremotessh/scripts/redirect.sh [sudo] password for apache:
I tried this, but not better :
sudo -u hremotessh /home/hremotessh/scripts/redirect.sh hremotessh is not in the sudoers file. This incident will be reported.
Any idea would be warmly welcomed :-)