[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: personal .bashrc



Lorenzo Bettini wrote:
Hi

on the standard user's home I use everyday I have the .bashrc file that is read upon login.

Now I created a brand new user (with adduser), but the .bashrc file I inserted in his home is never read upon login... in /etc/profile and /etc/bash.profile the .bashrc is actually never read... so how does it work?
Check .bash_profile for the original user. It is probably sourcing .bashrc with code similar to:

# include .bashrc if it exists
if [ -f ~/.bashrc ]; then
   . ~/.bashrc
fi

and your new user is probably not doing this.

--
Marc Shapiro
mshapiro_42@yahoo.com




Reply to: