Oracle FAQ Your Portal to the Oracle Knowledge Grid

Home -> Community -> Mailing Lists -> Oracle-L -> RE: sudo in script -- automate with password

RE: sudo in script -- automate with password

From: Johnson, George <GJohnson_at_GAM.COM>
Date: 2006-01-05 08:31:15

        This is my tuppence worth and this may be a statement of the "bleedin' obvious" as we say \ here, but doesn't this kind of defeat the security purpose of sudo? Putting passwords in \ files should always be avoided not only is it a security risk but supposing you are away \ for a week or two, someone changes the password for the target account, next thing you may \ have critical processes failing and no one understand why or where to correct it.

-----Original Message-----
From: [] On \ Behalf Of
Sent: 04 Jan 2006 21:25
Subject: Re: sudo in script -- automate with password

this works for me

sudo -S ls -ltr I have got a database script that mid-way through the script it needs
> to log in as sudo and run a process. The problem is the sudo
> password. I can't figure out a way to put it in the script instead
> of manually having to enter it. Pulling the password from a password
> file doesn't seem to work either. Has anyone else found a solution
> to this or needed to do this? The OS is AIX and it is Oracle 9202.
> Is there a special syntax that needs to be used?
> _________________________________________________________________
> Don't just search. Find. Check out the new MSN Search!
> --


This message contains confidential information and is intended only 
for the individual or entity named.  If you are not the named addressee
you should not disseminate, distribute or copy this e-mail.  
Please notify the sender immediately by e-mail if you have received 
this e-mail by mistake and delete this e-mail from your system.
E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed, arrive
late or incomplete, or contain viruses.  The sender therefore does not
accept liability for any errors or omissions in the contents of this 
message which arise as a result of e-mail transmission.  
If verification is required please request a hard-copy version.
This message is provided for informational purposes and should not
be construed as an invitation or offer to buy or sell any securities or
related financial instruments.
GAM operates in many jurisdictions and is 
regulated or licensed in those jurisdictions as required.

Received on Thu Jan 05 2006 - 08:31:15 CST

Original text of this message