Is there any way to accomblish that?

I have a binary that runs setgid. It needs a different version of a library
that usually resides in /usr/lib. And of course LD_LIBRARY_PATH or
LD_PRELOAD do not work.

Here's the scenario:

/usr/local/bin/foo need version 2.0 of library libbar. However, a lot of the
other apps need libbar version 1.0 which is incompatible to 2.0. Now if foo
wasn't setgid I would write a smallish shell wrapper to set LD_LIBRARY_PATH
or LD_PRELOAD but that won't work. I think there should be a way for root to
set up a wrapper for a case like this but frakly I don't know how.

Michael

P.S.: Please CC me on replies.

-- 
Michael Meskes
Michael@Fam-Meskes.De
Go SF 49ers! Go Rhein Fire!
Use Debian GNU/Linux! Use PostgreSQL!

Reply via email to