- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Don't work command from sudo
Operating System - HP-UX
1753758
Members
4495
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
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
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
11-08-2010 05:36 AM
11-08-2010 05:36 AM
Don't work command from sudo
In profile of user
/ora_acq/oracle/ora_env.sh
Visudo
User_Alias APP = user
Cmnd_Alias CA = /app/as/bin/bo
APP ALL=(app_user) NOPASSWD:CA
Do sudo from user
bash-3.2$ sudo -u app_user /app/as/bin/bo
/usr/lib/hpux64/dld.so: Unable to find library 'libclntsh.so.9.0'.
Killed
See http://forums.oracle.com/forums/thread.jspa?threadID=631697
Do env from user, variables are OK. But i have problem.
/ora_acq/oracle/ora_env.sh
Visudo
User_Alias APP = user
Cmnd_Alias CA = /app/as/bin/bo
APP ALL=(app_user) NOPASSWD:CA
Do sudo from user
bash-3.2$ sudo -u app_user /app/as/bin/bo
/usr/lib/hpux64/dld.so: Unable to find library 'libclntsh.so.9.0'.
Killed
See http://forums.oracle.com/forums/thread.jspa?threadID=631697
Do env from user, variables are OK. But i have problem.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2010 06:00 AM
11-08-2010 06:00 AM
Re: Don't work command from sudo
sudo ignores the SHLIB/LDLIB paths of the user environment for obvious security reasons.
See the man page to pass a library path to the command, using the SHLIB_PATH=/usr... in the sudo command, (see the VAR=value option).
See the man page to pass a library path to the command, using the SHLIB_PATH=/usr... in the sudo command, (see the VAR=value option).
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