From owner-freebsd-questions Tue Jun 25 8:21:20 2002 Delivered-To: freebsd-questions@freebsd.org Received: from cactus.fi.uba.ar (cactus.fi.uba.ar [157.92.49.108]) by hub.freebsd.org (Postfix) with ESMTP id 60E8C37B77C for ; Tue, 25 Jun 2002 08:20:17 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by cactus.fi.uba.ar (8.11.6/8.11.6) with ESMTP id g5PFIZP13038; Tue, 25 Jun 2002 12:18:35 -0300 (ART) (envelope-from fgleiser@cactus.fi.uba.ar) Date: Tue, 25 Jun 2002 12:18:35 -0300 (ART) From: Fernando Gleiser X-X-Sender: To: Cc: Subject: Re: Permissions required for bash In-Reply-To: <000701c21c59$ba6b5aa0$7b01a8c0@afi> Message-ID: <20020625121157.D403-100000@localhost> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, 25 Jun 2002 lists@brenius.com wrote: > I am having troubles activating my bash profile for root... > > #su > su-2.05a# > > Which should be: > > #su > ==[root] ~ # (which reads my .bash_profile) Nope. If you want your new shell to read your .profile, you must do a 'su -' > > I only get the second one when I do "su -" (which I don't understand). When you 'su -', it will simulate a login shell which in fact reads .profile. when you 'su', it won't simulate a login shell and won't read .profile. > > And what is the difference between .bashrc and .bash_profile? .bash_profile (or .profile) is read only by a login shell. .bashrc (or .shrc) is read by every new shell. It is explained in sh(1) or bash(1). Fer > > P.S. How do I add the server name to the prompt as well? > > > Thank you! > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message