Can a sudo user be allowed use relative path
Hi All,
As a security measure we have implemented sudo users for all the employees in our organization.
I am not sure
if we can allow a sudo user to use relative path to execute commands and navigate through the folders.
example:
Say there is an executable in the following location
sudo user: abc
/home/biz/bin/scirpt.sh
to execute the above scirpt, currently the sudo users are having to give the absolute path like below
abc@hostname# sudo -u biz sh /home/biz/scirpt.sh
If there is a way for the user to navigate through the folders like
abc@hostname# cd /home/biz/bin
abc@hostname# pwd
/home/biz/bin
abc@hostname# sh scirpt.sh
If yes, i would like to know this can be configured.
If needed I can provide more details / clarity.
Thanks every for in advance.
Thanks,
Sudhakar
|