Bug 173936 - bash doesn't honor .bash_profile in gnome-terminal
bash doesn't honor .bash_profile in gnome-terminal
Status: CLOSED DUPLICATE of bug 177258
Product: Fedora
Classification: Fedora
Component: gnome-terminal (Show other bugs)
rawhide
i386 Linux
medium Severity high
: ---
: ---
Assigned To: Ray Strode [halfline]
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-11-22 15:01 EST by Horst H. von Brand
Modified: 2007-11-30 17:11 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-01-03 08:54:09 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Horst H. von Brand 2005-11-22 15:01:05 EST
Description of problem:
bash doesn't honor ~/.bash_profile. I start a gnome-terminal, and the variables
and so set there aren't available.

Version-Release number of selected component (if applicable):
bash-3.0-36

How reproducible:
Always

Steps to Reproduce:
1. Start a gnome-terminal in gnome
2.
3.
  
Actual results:
Contents of .bash_profile aren't considered.

Expected results:
Read in .bash_profile

Additional info:
/var/log/secure shows the following after a failed login attepmt:
Nov 22 16:54:29 quelen sshd[27274]: PAM unable to
dlopen(/lib/security/$ISA/pam_ldap.so)
Nov 22 16:54:29 quelen sshd[27274]: PAM [dlerror: /usr/lib64/libldap-2.2.so.7:
undefined symbol: SSL_CTX_set_tmp_rsa_callback]
Nov 22 16:54:29 quelen sshd[27274]: PAM adding faulty module:
/lib/security/$ISA/pam_ldap.so
Comment 1 Horst H. von Brand 2005-11-23 15:21:43 EST
Sorry, the additional info is for another bug (with LDAP).
Comment 2 Willem Riede 2005-12-28 17:14:42 EST
I observed the same - you can detect it by looking at $PATH - ~/bin is not added.
Comment 3 Tim Waugh 2006-01-03 08:54:09 EST
The .bash_profile file is sourced only for a login shell (see 'man bash').  One
way to invoke bash as a login shell is to use the '-l' option, so if you want
.bash_profile sourced from gnome-terminal you need to enable the 'Run command as
a login shell' check-button in the gnome-terminal "Edit profile" dialog box.
Comment 4 Willem Riede 2006-01-03 18:05:30 EST
Given that this was not needed in FC4, can this be flagged in the release notes,
or perhaps better, can that check-button be set by default?
Comment 5 Ray Strode [halfline] 2006-01-10 11:03:42 EST
Hi guys,

This is fixed in rawhide now.  It was a bug in GDM (the component that provides
the login screen).

When someone logs in, a login shell should be executed.  That wasn't happening.

*** This bug has been marked as a duplicate of 177258 ***

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