Using sudo with Ingres

Todd C. Miller Todd.Miller at
Thu Aug 10 13:21:15 EDT 2000

Sudo clears the LD_* environment variables (and their equivalents
on various operating systems) since they represent a security
problem.  What you could do is give people sudo for a shell script
that explicitly sets LD_LIBRARY_PATH (or SHLIB_PATH if you are suing
HP-UX) to include the directory that holds the shared libs and then
runs the real executable.  Alternately, if you are using an OS that
supports ldconfig or something like you should be able
to just add the path that way.

 - todd

More information about the sudo-users mailing list