Harry Putnam wrote:

> On a root login and although root's shell is bash, the .bashrc file I
> created is not sourced.
> 
> Is this a local config problem or a default system setting somewhere.
> 
> Far as I know, when using bash it is supposed to look for
> .bash_profile/profile (in that order) and then .bashrc when invoked.

This is all IIRC:

bash looks for .bash_profile, and .bash_profile is the one that sends it
to .bashrc.  The Gentoo default configuration is to have no .bash_profile
nor .bashrc for root.  Thus, the global /etc/profile is used.  This is all
done for security reasons.

If you wish to override this, set up a .bash_profile in /root/ and also set
up a .bashrc in /root/.


-- 
                     G a b r i e l   M .   B e d d i n g f i e l d

--
[email protected] mailing list

Reply via email to