Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

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 musing on the Monastery: (5)
As of 2016-02-14 23:14 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (471 votes), past polls