Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 389 - .bash_profile not 'sourced' when bash logs in.
Summary: .bash_profile not 'sourced' when bash logs in.
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: Low normal (vote)
Assignee: Daniel Robbins (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-01-28 12:20 UTC by Yannick Koehler (RETIRED)
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.