Hello,
I have a directory with 45 kshell scripts . I would like to grant sudo to specific account on this DIRECTORY and not on each and every files. Is it possible ? (note: I have the same scripts and directory both on linux redhat + hpux)
Best Regards
Yes for safety to put the directory writable only by root (if needed otherwise chmod 555...) AND use full path to the scripts eg /sm/sysstuff/adm/*
---------- Post updated at 14:01 ---------- Previous update was at 13:58 ----------
And to make it a bit more safe, here we use rather than * to directory *somename* e.g. from /etc/sudoers: (HP-UX)
exploit ran = NOPASSWD : /usr/bin/su - test -c /opt/app/tools/*_ds*