Bug 164380 - /etc/profile not sourced on login
Summary: /etc/profile not sourced on login
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: bash
Version: 4
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-07-27 14:47 UTC by Robert Finlon
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-07-27 18:14:31 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.