Red Hat Bugzilla – Bug 164380
/etc/profile not sourced on login
Last modified: 2007-11-30 17:11:10 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.8) Gecko/20050524 Fedora/1.0.4-4 Firefox/1.0.4
Description of problem:
LD_LIBRARY_PATH is defined and exported in /etc/profile. Variable is blank after user login. Executing source /etc/profile recreates the variable and remains until the user logs out. Subsequent user logins require runnin source /etc/profile once again.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Define and export LD_LIBRARY_PATH in /etc/profile
2. Log out and login again
3. Execute printenv and LD_LIBRARY_PATH will be empty.
Actual Results: Programs depending on LD_LIBRARY_PATH can't find shared objects.
Expected Results: Programs should find shared objects and execute properly.
Recently installed FC4 and downloaded kernel update.
Please be more specific about how you are logging in and logging out. If you
are using a graphical interface to log in, how are you invoking the shell prompt?
Login and logout is through the GNOME graphical interface. The shell commands
are entered from a terminal window after logging in. The terminal window is
closed by clicking the X in the upper right corner of the terminal window.
/etc/profile is only sourced for login shells. You need to click select
Edit->Current Profile... from the terminal window menu, then go to the Title and
Command tab and select the 'Run command as login shell' checkbox.