1
I am trying to add a NOPASSWD entry for 'sudotest.sh' (or any script/binary that requires sudo) in my /etc/sudoers file (redhat) but in order to make it work, I must specify the full path. The following entry works just fine:
%jenkins ALL=(ALL)NOPASSWD:/home/vts_share/test/sudotest.sh
The problem is that the script might move to a different directory. I tried as giving /home/*/sudotest.sh but didn't work for me when I tried to execute sudo ./sudotest.sh,it gave me you dont have root permission
Note:I can't have permission to /bin/sh directory too.
Any answer acceptable as solution, or any further questions? – davidbaumann – 2018-05-09T12:49:49.203