On Thu, 10 Aug 2000 12:09:52 -0400 (EDT) Sam Varshavchik wrote:
> On Thu, 10 Aug 2000, Sergey Nikolaev wrote:
> > When I ran sqwebmail with setuid bit set and root ownership, I could
> > not run it at all. The error log file would say something like
> > cgi srcipt didn't produce a valid header. I ran truss on my ns-httpd
> > to find out that sqwebmail failed because it could not find gdbm library
> > even though LD_LIBRARY_PATH is set properly in the start script.
>
> But since sqwebmail is executed by the http server, is LD_LIBRARY_PATH set
> in that environment?
>
> --
> Sam
>
>
--end of quoted text--
Don't suid root binaries ignore LD_LIBRARY_PATH, so the library path must
be set at compile time? Otherwise, I could redefine some common library call
in a library and point LD_LIBRARY_PATH to that library and run it as root.
chris