- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- su as oracle in a script is there a way to pass th...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2005 04:28 AM
07-11-2005 04:28 AM
su as oracle in a script is there a way to pass the password
When the script run the UID is = 0 (root) and the euid is oracle - I want any certain user to run this script but get the capibilites of oracle when it runs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2005 04:37 AM
07-11-2005 04:37 AM
Re: su as oracle in a script is there a way to pass the password
su - oracle -c "your_script_name.ksh"
This will run the script as the oracle user picking up the oracle environment
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2005 04:37 AM
07-11-2005 04:37 AM
Re: su as oracle in a script is there a way to pass the password
su - oracle -c "/full/path/to/my/script.sh"
it will inherit the oracle user's shell environments while running your script.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2005 04:38 AM
07-11-2005 04:38 AM
Re: su as oracle in a script is there a way to pass the password
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2005 04:39 AM
07-11-2005 04:39 AM
Re: su as oracle in a script is there a way to pass the password
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2005 04:39 AM
07-11-2005 04:39 AM
Re: su as oracle in a script is there a way to pass the password
This would allow users to run the script as root, thus allowing the script to su to oracle without requiring a password.
You can get sudo from:
SUDO Homepage:
http://www.gratisoft.us/sudo/
The Porting and Archiving Centre for HP-UX: http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sudo-1.6.8p7/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2005 04:44 AM
07-11-2005 04:44 AM
Re: su as oracle in a script is there a way to pass the password
Either provides the functionaity you are looking for. One is free, i.e., you are on your own, other requires a licensing fee and comes with handholding when you are in trouble.
Take your pick.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2005 05:02 AM
07-11-2005 05:02 AM
Re: su as oracle in a script is there a way to pass the password
The application will keep logs of who did the deed and when.
Can be downloaded from HP or from www.courtsean.com at no charge
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2005 11:42 PM
07-11-2005 11:42 PM
Re: su as oracle in a script is there a way to pass the password
We are also brainstroming to come up with an alternative way. One way might be creating a file that is owned by oracle and is ust RW at the owner level and passing that to a script by setting the sticky bit to run as the owner of the script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2005 04:06 AM
08-11-2005 04:06 AM
Re: su as oracle in a script is there a way to pass the password
The origional unix way is to make the uid of the script 'oracle' and set the s-bit. Specially for scripts, this is considdered insecure, however, it wil get you going.
To have a more secure way using s-bits, use tools like `super` or `sudo`. They have some means of controll on who can run it and/or if a password is required (the originating users password, not oracle-s). They also provide some logging.
Then there is the `remsh localhost -l oracle` way: This both changes the uid and the euid.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2005 04:09 AM
08-11-2005 04:09 AM