Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: Apache, no suexec, suid and the environment

by toolic (Bishop)
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
Replies are listed 'Best First'.
Re^2: Apache, no suexec, suid and the environment
by stefan k (Curate) on Jun 29, 2007 at 06:49 UTC
    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?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2015-11-29 16:20 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (751 votes), past polls