I have a developer on my Linux server who needs to have a small custom Bash script ran manually which lives in /etc/init.d/ folder:
[root@cq init.d]# ls -l myscript
-rwxrwx-w- 1 root root 1301 Feb 14 2012 myscript
I don't just want to give this or possibly more developers blind full sudo access to the entire server. My question is how can I limit the users sudo access to run this script and not have to give them more access than they need? I'm not sure if it's necessary to see what exactly the script is doing and where it's doing it so I will just leave it at this for now and can post more details if need be.
So I just want this user to be able to run this scrip as sudo but have sudo limit her ability to what she can and can't do as an elevated user.
Thanks for any info.