I need to run important_script.sh as with sudo -i without password.
If I have in sudoers:
apache ALL = (root) NOPASSWD: /blah/important_script.sh
and run "sudo /blah/important_script.sh" I can run it without password.
However if I run "sudo -i /blah/important_script.sh" I need to enter password for apache.
If I change line in sudoers to:
apache ALL = (root) NOPASSWD:ALL
I can run command "sudo -i /blah/important_script.sh" without password.
But I want to be able to run only /blah/important_script.sh, not ALL commands.
So, how I setup that only /blah/important_script.sh could be ran with sudo -i without password.