Hello Yes it is true that setuid binary ignores LD_LIBRARAY_PATH .
I enetred path (where .so's ) are stored in /etc/ld.so.conf and ran ldconfig program as root , then also it was not able to pick. Only when i copy my .so's in to /usr/lib or /lib it works and i dont want to do this because it may corrupt these directories Is there any other solution???? Thanks Murali "Ben Collins"<[EMAIL PROTECTED]> wrote: On Tue, Aug 14, 2001 at 04:11:58PM +0530, gdmurali wrote: > Hi > > If the executable is a "setuid" binary , it does not link to *.so's specified > in LD_LIBRARAY_PATH env variable (run ldd on setuid binary).Why? > How to solve this? i,e i need to link "setuid" binary with some > .so's(created by me) > present in a particular directory That's a security feature. The dynamic linker does not allow doing this. I believe there is a way around by adding certain perms to the shared .so's, but the real way is to add the path your are putting into LD_LIBRARAY_PATH to /etc/ld.so.conf. Ben -- .----------=======-=-======-=========-----------=====------------=-=-----. / Ben Collins -- ...on that fantastic voyage... -- Debian GNU/Linux \ ` [EMAIL PROTECTED] -- [EMAIL PROTECTED] -- [EMAIL PROTECTED] ' `---=========------=======-------------=-=-----=-===-======-------=--=---' Get Your Private, Free E-mail from Indiatimes at http://email.indiatimes.com Buy Music, Video, CD-ROM and Audio-Books from http://www.planetmonline.com