Date: Tue, 25 Jun 2002 12:18:35 -0300 (ART) From: Fernando Gleiser <fgleiser@cactus.fi.uba.ar> To: <lists@brenius.com> Cc: <questions@FreeBSD.ORG> Subject: Re: Permissions required for bash Message-ID: <20020625121157.D403-100000@localhost> In-Reply-To: <000701c21c59$ba6b5aa0$7b01a8c0@afi>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020625121157.D403-100000>