Bug 164380

Summary: /etc/profile not sourced on login
Product: [Fedora] Fedora Reporter: Robert Finlon <rfinlon1>
Component: bashAssignee: Tim Waugh <twaugh>
Status: CLOSED NOTABUG QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: 4   
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-07-27 18:14:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Robert Finlon 2005-07-27 14:47:45 UTC
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):
bash 3.0

How reproducible:
Always

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.

Additional info:

Recently installed FC4 and downloaded kernel update.

Comment 1 Tim Waugh 2005-07-27 14:56:06 UTC
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?

Comment 2 Robert Finlon 2005-07-27 17:40:32 UTC
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.

Comment 3 Tim Waugh 2005-07-27 18:14:31 UTC
/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.