symlink and sudo executable
        Posted  
        
            by CodeMedic
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by CodeMedic
        
        
        
        Published on 2010-06-14T17:37:29Z
        Indexed on 
            2010/06/14
            17:42 UTC
        
        
        Read the original article
        Hit count: 263
        
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?
© Stack Overflow or respective owner