My goal: I want to give users in the group "rtkprd" the ability to elevate their privileges and run a restricted shell script by using sudo. The full path to the shell script is /usr/local/bin/only_rtkprd.sh
The syntax of /etc/sudoers is giving me fits, to I've reduced my sudoers to a single log directive and a single line to enable the rtkprd group.
Code:
Defaults logfile=/var/log/sudo
%rtkprd ALL = (rtkprd) /usr/local/bin/only_rtkprd.sh
I'm a member of group rtkprd, here's my test:
Code:
/home/dthacker> id
uid=516(thackerd) gid=1(staff) groups=206(rtkprd)
When I attempt to run the script I get the "nag" screen and then this error:
Code:
Sorry, user thackerd is not allowed to execute '/usr/local/bin/only_rtkprd.sh' as root on rtkdev.mydomain.local.
I'm not sure what's wrong in the syntax, and I don't understand why sudo thinks I'm trying to run as root.
Please give me some pointers!
Thanks in Advance
Dave