[sudo-users] Help on sudoers and Runas_Alias
Todd C. Miller
Todd.Miller at courtesan.com
Fri Jan 28 11:10:47 EST 2011
Your sudoers entries look fine. The error you get:
$ sudo -u operator ./run
sudo: unable to execute /app2/run: Permission denied
happens because the file system permissions don't allow user operator
to run that script, not because of a sudoers issue.
The "Permission denied" is coming from the kernel when sudo tries
to execute the script as user operator. You probably need to make
the script readable and executable by all users (unless it is owned
by group operator in which case group permissions would suffice).
You should be able to fix this with "chmod 755 /app2/run".
More information about the sudo-users