Can't set LD_LIBRARY_PATH in .gnomerc
James Carroll
mrmaple at gmail.com
Mon Apr 25 11:45:15 UTC 2005
(Still trying to set LD_LIBRARY_PATH)
I wasn't sure _where_ you were going with suid stuff. Thanks for the
help though.
Also, I put the LD_LIBRARY_PATH assignement in /etc/profile and it's
still not showing up in my environment! Something downstream... after
Xsession sources .gnomerc that's unsetting the LD_LIBRARY_PATH... I
just can't find it. Could it be a Debian policy to trounce
environment variables? I did find one article talking about how they
encourage every script to set their own variables. But
/usr/bin/python is not a script, so I can't modify it. Also I need
the LD_LIBRARY_PATH to be set to run some C++ programs that I'm
writing against the devoelpment wxWidgets libraries. I end up having
to set them in a terminal, then run my programs from a terminal when
normally I could double click on them or run them from my IDE
(slickedit).
-Jim
On 4/24/05, ZIYAD A. M. AL-BATLY <zamb at spymac.com> wrote:
> On Sun, 2005-04-24 at 20:07 +0300, ZIYAD A. M. AL-BATLY wrote:
> > (If anyone have more info on the subject, please enlighten us!)
> >
> > Okay. It seem that it's an intended behaviour for security reasons.
> > Quote from ld.so man page:
> > The necessary shared libraries needed by the program are
> > searched for in the following order
> > * Using the environment variable LD_LIBRARY_PATH. Except
> > if the executable is a setuid/setgid binary, in which
> > case it is ignored.
> >
> > The file ~/.gnomerc is actually sourced *before* GNOME is loaded, and
> > it's done by X, and because X is a setuid executable, will,
> > LD_LIBRARY_PATH is ignored! (By the way, ~/.gnomerc is sourced from the
> > file:
> > /etc/X11/Xsession.d/55gnome-session_gnomerc
> > in case you wanted to know that.)
> >
> > The best solution for you (in my not-so-experienced opinion) is to put
> > the LD_LIBRARY_PATH setting in /etc/profile. Be warned that *all* users
> > will be affected by that.
> >
> > Ziyad.
>
> Just ignore my message. After further reading, I begun to believe that
> the setuid issue will make the application that's setuid ignore the
> LD_LIBRARY_PATH but it wont change/unset it. So, apparently, your
> problem lies somewhere else.
>
> Sorry for not being any help.
> As I wrote previously:
> If anyone have more info on the subject, please help!
>
> Ziyad.
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> http://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
>
More information about the ubuntu-users
mailing list