symlink and sudo executable

Posted by CodeMedic on Super User See other posts from Super User or by CodeMedic
Published on 2010-06-14T17:37:29Z Indexed on 2010/06/15 2:13 UTC
Read the original article Hit count: 260

Filed under:
|
|

If I have the below sudoers entry

usera ALL=(userb) NOPASSWD: /home/userc/bin/executable-file
usera ALL=(userb) NOPASSWD: /home/userc/bin/link-to-another-executable-file

When I log-on as usera and try running the below commands, it works

sudo -u userb /home/userc/bin/executable-file

but NOT the one below.

sudo -u userb /home/userc/bin/link-to-another-executable-file

Sorry, user usera is not allowed to execute '/home/userc/bin/link-to-another-executable-file' as userb on hostname.

Any ideas?

© Super User or respective owner

Related posts about linux

Related posts about centos