Don't work command from sudo

 
Goriik
Advisor

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.



1 REPLY 1
TTr
Honored Contributor

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).