From owner-freebsd-questions Thu Oct 14 9:36:49 1999 Delivered-To: freebsd-questions@freebsd.org Received: from ns.clientlogic.com (ns.clientlogic.com [207.51.66.75]) by hub.freebsd.org (Postfix) with ESMTP id 43239150C9 for ; Thu, 14 Oct 1999 09:36:31 -0700 (PDT) (envelope-from ChrisMic@clientlogic.com) Received: by site0s1 with Internet Mail Service (5.5.2448.0) id <4ZFJ5T0A>; Thu, 14 Oct 1999 12:36:32 -0400 Message-ID: <6C37EE640B78D2118D2F00A0C90FCB4401105CE6@site2s1> From: Christopher Michaels To: 'Sheldon Hearn' , Hayden Katzenellenbogen Cc: freebsd-questions@FreeBSD.ORG Subject: RE: .bashrc Date: Thu, 14 Oct 1999 12:39:36 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: text/plain Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hayden, I'm not quite sure why it works for root, but this is working as designed. Take a look at the bash man page and the mailing list archives for more info. Basically the ~/.bashrc is only sourced when a new instance of bash in executed. When it is a login shell it looks for ~/.profile or (i belive) ~/.bash_profile. This behavior is completely baffling to me but that is how it is desinged. The best thing to do is to put a line in either the ~/.profile, ~/.bash_profile, or maybe even /etc/profile that sources ~/.bashrc if it exists. -Chris > -----Original Message----- > From: Sheldon Hearn [SMTP:sheldonh@uunet.co.za] > Sent: Thursday, October 14, 1999 10:08 AM > To: Hayden Katzenellenbogen > Cc: freebsd-questions@FreeBSD.ORG > Subject: .bashrc > > > > On Thu, 14 Oct 1999 15:12:30 +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 > > Are you sure your users have readable .bashrc files in their home > directories? Such files are not created automatically. > > Ciao, > Sheldon. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message