LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   sudoers configuration (https://www.linuxquestions.org/questions/linux-security-4/sudoers-configuration-914620/)

hmadhi 11-20-2011 11:01 PM

sudoers configuration
 
I have two scripts:

1. getPwd.pl owned by secure:users - returns a DB password.
2. connectDB.pl owned by alice:users - calls getPwd and uses the password returned to connect to a DB

I want to set up sudo so that :

1. only user alice can call getPwd.pl
2. no password required by user alice to execute getPwd.pl

Please assist in editing the sudoers file.

jthill 11-21-2011 04:34 PM

Nothing can prevent the root user running any command, nor user 'secure' running the getPwd.pl command.

The sudoers man page can be daunting, but the examples section should be very helpful. See what you can make of it, then if you still can't make it work post what you tried that doesn't work and why you think it should work.


All times are GMT -5. The time now is 08:32 PM.