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

Re: personal .bashrc

Marc Shapiro wrote:
Lorenzo Bettini wrote:

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

and your new user is probably not doing this.

you're right!
actually the new user did not have .bash_profile at all... I had to create it like that.


| Lorenzo Bettini          ICQ# lbetto, 16080134      |
| PhD in Computer Science, DSI, Univ. di Firenze      |
| Florence - Italy        (GNU/Linux User # 158233)   |
| http://www.lorenzobettini.it                        |
| http://tronprog.blogspot.com  BLOG                  |
| http://www.purplesucker.com Deep Purple Cover Band  |
| http://www.gnu.org/software/src-highlite            |
| http://www.gnu.org/software/gengetopt               |
| http://www.gnu.org/software/gengen                  |
| http://doublecpp.sourceforge.net                    |

Reply to: