When someone says: "I want a programming language in which I need only say what I wish done", give him a lollipop. (Alan J. Perlis)
Got questions? Go ahead: Ask me anything!
Subject: ./bashrc doesn't run automatically
On a Red Hat system:
Linux Allied-2 2.4.21-4.ELsmp #1 SMP Fri Oct 3 17:52:56 EDT 2003 i686 i686 i386 GNU/Linux
my customer has played with webmin and did something to logins so that some users .bashrc doesn't get executed. Instead they find themselves at a $ prompt and if they type in ./.bashrc it runs fine.
I've compared ownership & permissions with users that work correctly, no joy.
More Articles by dhart
© 2009-11-07 dhart
When bash is invoked as an interactive login
shell, or as a non-inter- active shell with the
--login option, it first reads and executes com-
mands from the file /etc/profile, if that file
exists. After reading that file, it looks for
~/.bash_profile, ~/.bash_login, and ~/.profile,
in that order, and reads and executes commands
from the first one that exists and is readable.
The --noprofile option may be used when the
shell is started to inhibit this behavior.
When a login shell exits, bash reads and
executes commands from the file ~/.bash_logout,
if it exists.
When an interactive shell that is not a login shell
is started, bash reads and executes commands
from ~/.bashrc, if that file exists. This may be
inhibited by using the --norc option. The --rcfile
file option will force bash to read and
execute commands from file instead of ~/.bashrc.
Have you tried Searching this site?
Unix/Linux/Mac OS X support by phone, email or on-site:
This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.