|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|
Re: [PLUG] ssh login vs bash (how to invoke bash)
|
On Mon, Oct 23, 2000 at 11:18:46AM -0400, Jeff Abrahamson wrote:
> Q: Why doesn't bash get read .bashrc for me when invoked by sshd?
Check out the bash manpage, and search for 'INVOCATION' at the beginning of
a line ('/^INVOCATION'):
When bash is invoked as an interactive login shell, or as
a non-interactive shell with the --login option, it first
reads and executes commands 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 behav
ior.
Solution: Run the following command:
$ echo "if [ -f ~/.bashrc ]; then . ~/.bashrc; fi" >> ~/.bash_profile
--
Bill Jonas | "If you haven't gotten where you're going,
bill@billjonas.com | you aren't there yet." --George Carlin
http://www.billjonas.com/ | http://www.harrybrowne.org/
______________________________________________________________________
Philadelphia Linux Users Group - http://www.phillylinux.org
Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce
General Discussion - http://lists.phillylinux.org/mail/listinfo/plug
|
|