Red Hat Bugzilla – Bug 217783
LD_LIBRARY_PATH stripped when xdm login ( personal )
Last modified: 2014-06-18 05:09:07 EDT
+++ This bug was initially created as a clone of Bug #208148 +++
Description of problem:
This is a dup of https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=164869.
I am entering it again now as it is in RHEL4.4
In /etc/X11/xdm/Xsession, the addition of $SSH_AGENT in the following line:
exec -l $SHELL -c "$SSH_AGENT $DBUS_LAUNCH gnome-session"
The ssh-agent executable is has its setgid bit set; this causes glibc (?) to
remove LD_LIBRARY_PATH from the environment before launching $DBUS_LAUNCH
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Login via xdm
2. Open gnome-terminal
3. echo $LD_LIBRARY_PATH
Anything you have set in ~/.bash_profile or /etc/profile
Login via a console (ctrl-alt-F1); echo $LD_LIBRARY_PATH: Viola,
LD_LIBRARY_PATH is set.
-- Additional comment from firstname.lastname@example.org on 2006-11-24 11:45 EST --
According to the tmraz (owner of ssh-agent) there will be no chance of changing
ssh-agent being sgid, so probably the only solution is to follow comment 4 and
change (if possible) calling of ssh-agent (unless we want WONTFIX, but that's
IMHO not correct, because this really looks like our bug). Therefore, I think,
that this bug belongs to you. Feel free to reASSIGN to somebody better.
-- Additional comment from email@example.com on 2006-11-24 11:47 EST --
see for more info FC bug#164869.
-- Additional comment from firstname.lastname@example.org on 2006-11-29 15:47 EST --
additionally, rhel3 do not have setuid ssh-agent . rhel4 and above do.
patch posted on bug#164869
Created attachment 148472 [details]
A wrapper script to start desktop session and saving LD_LIBRARY_PATH .
To apply the patch
cat /path/to/xinitrc_ld_library_path_rhel5.patch| patch -p0
chmod a+x /etc/X11/xinit/xinitrc-ssh
log-out and login. This should resolve the issue.
works for the customer.
kde does not export bashrc during login. checking this up.
workaround is to use profile.d , or $HOME/.xsession
We should probably just change ssh-agent to use its alternate syntax instead of
doing the pass through way we do now.
patch from bugzilla #164869  helps.
Correcting component to xorg-x11-xinit
Devel ack. Fastrack is fine with me.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.