From owner-freebsd-questions Thu Oct 14 14:18:20 1999 Delivered-To: freebsd-questions@freebsd.org Received: from athserv.otenet.gr (athserv.otenet.gr [195.170.0.1]) by hub.freebsd.org (Postfix) with ESMTP id D590B1521D for ; Thu, 14 Oct 1999 14:18:12 -0700 (PDT) (envelope-from keramida@diogenis.ceid.upatras.gr) Received: from hades.hell.gr (patr530-a007.otenet.gr [195.167.115.7]) by athserv.otenet.gr (8.9.3/8.9.3) with SMTP id AAA10715 for ; Fri, 15 Oct 1999 00:18:10 +0300 (EET DST) Received: (qmail 11113 invoked by uid 1001); 14 Oct 1999 20:19:32 -0000 Date: Thu, 14 Oct 1999 23:19:32 +0300 From: d e a t h To: freebsd-questions@freebsd.org Subject: Re: .bashrc Message-ID: <19991014231932.A11053@hades.hell.gr> Reply-To: keramida@ceid.upatras.gr References: <3805D6BE.8EB13B39@tudogs.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3i In-Reply-To: <3805D6BE.8EB13B39@tudogs.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Oct 14, 1999 at 03:12:30PM +0200, Hayden Katzenellenbogen wrote: > Running Ver 3.2 with the latest bash. when I login in as root my .bashrc > file runs but for no other user but root. how do I get the normal users > bashrc files to run When you log in, the 'normal' file to run is .bash_profile, since the shell is then a login shell. You ought to have something like: test -f ~/.bashrc && . ~/.bashrc somewhere into your .bash_profile file to make Bash read the file .bashrc too. This all becomes clear when we read in the info pages of bash: When Bash is invoked as an interactive login shell, 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 behavior. -- Giorgos Keramidas, "Curse me if I'm wrong, but don't you want to Slang me?" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message