LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 11-20-2011, 11:01 PM   #1
hmadhi
LQ Newbie
 
Registered: Jul 2006
Posts: 6

Rep: Reputation: 0
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.
 
Old 11-21-2011, 04:34 PM   #2
jthill
Member
 
Registered: Mar 2010
Distribution: Arch
Posts: 209

Rep: Reputation: 65
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.
 
  


Reply

Tags
sudo, sudoers


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
sudoers configuration problem xcoldfyrex Linux - Software 10 06-09-2010 04:47 AM
sudoers file configuration torrent55 Debian 2 11-04-2008 03:10 AM
Create two entries for the sudoers configuration file - help! SheMoves Linux - Newbie 1 06-23-2008 01:30 PM
I deleted /etc/sudoers and creates a new file call sudoers but now it doesnt for visu abefroman Linux - Software 1 11-10-2005 05:03 PM
Entries for sudoers configuration file Hikito Linux - Newbie 5 09-17-2004 12:42 PM


All times are GMT -5. The time now is 09:44 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration