Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 389

Summary: .bash_profile not 'sourced' when bash logs in.
Product: Gentoo Linux Reporter: Yannick Koehler (RETIRED) <ykoehler>
Component: [OLD] Core systemAssignee: Daniel Robbins (RETIRED) <drobbins>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Low    
Version: 1.0 RC6 r14   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Yannick Koehler (RETIRED) gentoo-dev 2002-01-28 12:20:15 UTC
I did kind of a default gentoo install.  Created a user with adduser -m <name>
and when I logged through this user or root, the .bash_profile located in the
home dir of the user is not 'sourced' as specified inside the .bash_profile.

Here's the file:

#This file is sourced by bash when you log in interactively.
[ -f ~/.bashrc ] && . ~/.bashrc

eval `dircolors --sh`
alias d="ls --color"
alias ls="ls --color=auto"
alias ll="ls --color -l"

My home dir:

total 10
drwxr-xr-x    2 ykoehler users        1024 Jan 28 13:11 .
drwxr-xr-x   14 root     root         1024 Jan 28 13:11 ..
-rw-------    1 ykoehler users          11 Jan 28 13:11 .bash_history
-rw-r--r--    1 ykoehler users         189 Jan 28 13:11 .bash_profile
-rw-r--r--    1 ykoehler users         168 Jan 28 13:11 .bashrc
-rw-r--r--    1 ykoehler users        5064 Jan 28 13:11 .vimrc
Comment 1 Yannick Koehler (RETIRED) gentoo-dev 2002-01-28 12:39:41 UTC
I did

usermod -s /bin/bash <name>

And it worked.  I thought I didn't have to specify the shell when creating the
account because of the man of adduser:

-s shell
              The name of the user's login shell.  The default is to leave this
field blank, which causes the system to select the default login shell.