Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Apache, no suexec, suid and the environment

by toolic (Chancellor)
on Jun 28, 2007 at 14:02 UTC ( #623896=note: print w/ replies, xml ) Need Help??


in reply to Apache, no suexec, suid and the environment

In *nix, LD_LIBRARY_PATH is commonly a colon-separated list of directories. If you do not wish to clobber existing directories, you may want to either append or prepend a path:

$ENV{LD_LIBRARY_PATH} .= ":/my/new/path"; # append $ENV{LD_LIBRARY_PATH} = "/my/before/path:" . $ENV{LD_LIBRARY_PATH}; +# prepend

It is also a good practice to check if LD_LIBRARY_PATH is defined before doing this.


Comment on Re: Apache, no suexec, suid and the environment
Download Code
Re^2: Apache, no suexec, suid and the environment
by stefan k (Curate) on Jun 29, 2007 at 06:49 UTC
    Hi,
    thanks for pointing that out, but I am well aware of what LD_LIBRARY_PATH is, how it is used and what values it takes in the situation at hand. The problem is that the programs called from perl don't find their libraries in this suid-script and I can't see why not.

    Regards... stefan k
    you begin bashing the string with a +42 regexp of confusion

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (18)
As of 2014-08-27 13:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (238 votes), past polls