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

Re: Apache, no suexec, suid and the environment

by toolic (Bishop)
on Jun 28, 2007 at 14:02 UTC ( [id://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
    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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://623896]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-04-19 23:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found