Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: question about libclntsh.so
In comp.unix.programmer music4 <cli4_at_lucent.com> wrote:
...
# Then I want my program to do something that only oracle can do, so I "chown
# oracle myprogram", and "chmod 4755 myprogram". At this time, problem comes:
# myprogram can not find libclntsh.so, use command "ldd myprogram":
#
# libclntsh.so --> (file not found)
#
# Any ideas? Please help me.
Yes; setuid programs will not search some random LD_LIBRARY_PATH for libraries for security reasons. Just think of someone setting LD_LIBRARY_PATH to include his home directory and putting his own libc.so there. Unlimited power if there is a dynamically linked setuid root binary on the system (and usually there are dozens).
You have to put your libclntsh.so in the restricted LD_LIBRARY_PATH or run your app as user oracle with su or sudo, say.
Regards,
Jens
-- Jens Schweikhardt http://www.schweikhardt.net/ SIGSIG -- signature too long (core dumped)Received on Wed Dec 18 2002 - 04:13:35 CST