Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: question about libclntsh.so

Re: question about libclntsh.so

From: Jens Schweikhardt <usenet_at_schweikhardt.net>
Date: 18 Dec 2002 10:13:35 GMT
Message-ID: <atphof$ql7$1@newsfeed.pit.comms.marconi.com>


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

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US