You could also ask your System Administrator to set up a sudo for you. Not sure if this is possible in all UNix flavors, but in AIX you can set up a sudo which mimics being root.
-----Original Message-----
From: Chris Hagemaier
[mailto:oracledba-ezmlmshield-x73536710.[Email address protected]
Sent: Tuesday, August 31, 2004 12:19 PM
To: LazyDBA Discussion
Subject: RE: su'ing in a UNIX script
Jay-
In a case like this you should work with your system administrator.
Maybe you could write a script to do what you're after, then
have the administrator change the permissions on it to rwsr-xr-w
or whatever is appropriate.
-----Original Message-----
From: Jay Sethi
[mailto:oracledba-ezmlmshield-x84237029.[Email address protected]
Sent: Tuesday, August 31, 2004 11:49 AM
To: LazyDBA Discussion
Subject: su'ing in a UNIX script
Hi,
I need to pass the Password to the superuser command as follows:
su - superuser_id
As is, the above when executed from the command line expects after the
string "Password:" on the next line.
I can not get root privileges.
Thanks.
Jay
--------
website: http://www.LazyDBA.com
Please don't reply to RTFM questions
Oracle documentation is here: http://tahiti.oracle.com
To unsubscribe: see http://www.lazydba.com/unsubscribe.html
To subscribe: see http://www.lazydba.com
By using this list you agree to these
terms:http://www.lazydba.com/legal.html
--------
website: http://www.LazyDBA.com
Please don't reply to RTFM questions
Oracle documentation is here: http://tahiti.oracle.com
To unsubscribe: see http://www.lazydba.com/unsubscribe.html
To subscribe: see http://www.lazydba.com
By using this list you agree to these terms:http://www.lazydba.com/legal.html
Oracle LazyDBA home page