- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- problem in su
Operating System - HP-UX
1753781
Members
7572
Online
108799
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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-15-2009 02:33 AM
тАО07-15-2009 02:33 AM
problem in su
i am running a shell script in hp-ux for export of my database when i su - oracle, it is propmting for password and im running the script from oracle user itself
- Tags:
- su
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-15-2009 03:58 AM
тАО07-15-2009 03:58 AM
Re: problem in su
Hi,
This is Linux area, any way it is normal to ask because you are not root user, to work around, try to run it as root user, make the script some thing like this:
export ORACLE_HOME=
export PATH=$PATH:$ORACLE_HOME
su - oracle -c ""
hope it will help
This is Linux area, any way it is normal to ask because you are not root user, to work around, try to run it as root user, make the script some thing like this:
export ORACLE_HOME=
export PATH=$PATH:$ORACLE_HOME
su - oracle -c "
hope it will help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-15-2009 04:05 AM
тАО07-15-2009 04:05 AM
Re: problem in su
Or make your script use su only when necessary, with a test like this:
if [ $(whoami) != "oracle" ]; then
SUPREFIX="su - oracle"
else
SUPREFIX=""
fi
# prefix the command with "su - oracle" if run as someone other than "oracle"
$SUPREFIX somecommand
MK
if [ $(whoami) != "oracle" ]; then
SUPREFIX="su - oracle"
else
SUPREFIX=""
fi
# prefix the command with "su - oracle" if run as someone other than "oracle"
$SUPREFIX somecommand
MK
MK
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP