- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: switch user...
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
Forums
Discussions
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
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
01-18-2007 04:03 AM
01-18-2007 04:03 AM
When I logged on using that account and executed the following command, I received password prompt to enter Oracle password. Oracle account is an UNIX account. How can I enable this regular user to switch user to Oracle and not required to enter Oracle password? Your help is always appreciated.
su - oracle - c "/app/db/oracle/u01/oracle/product/9.2.0.1.0/bin/sqlplus /nolog"
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2007 04:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2007 04:21 AM
01-18-2007 04:21 AM
Re: switch user...
A non-root user that attempts to use 'su - otheruser' to switch accounts will always be prompted, interactively, for the 'otheruser' password. You can't even redirect a file containing the 'otheruser' password to 'su' to circumvent this.
You will have to find a different approach -- 'sudo' or a C-setuid script wrapper are two approaches.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2007 04:23 AM
01-18-2007 04:23 AM
Re: switch user...
Thank you James and John.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2007 04:38 AM
01-18-2007 04:38 AM
Re: switch user...
Thank you James and John!