Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

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.

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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2017-05-29 00:43 GMT
Find Nodes?
    Voting Booth?