Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: adding libs in a setuid-perl script

by LucBrussels (Initiate)
on Sep 22, 2010 at 08:26 UTC ( [id://861228]=note: print w/replies, xml ) Need Help??


in reply to adding libs in a setuid-perl script

Hello,

Attempts to modify $ENV{LD_LIBRARY_PATH} and/or using exec, as suggested, didn't work. I ran into the same or similar problems.

Using truss i could see in which directories the system is looking for the ctlib.so file. One of the directories is /usr/lib. So I copied the sybase libraries to /usr/lib and now setting suid-bits are working as I would expect it to work.

(to be complete: I should replace libct.so in the description by libsybct.so because I had to switch to open client version 15.x instead of 12.x. There has always been a library naming conflict on solaris and sybase has solved this by renaming its libraries as of version 15.0)

Thanks for your contributions,
Luc.

  • Comment on Re: adding libs in a setuid-perl script

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://861228]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-25 13:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found