Date: Fri, 24 Apr 2009 15:53:41 -0400 From: Daniel Underwood <djuatdelta@gmail.com> To: Adam Vandemore <amvandemore@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: su'ing not sourcing .bash_profile Message-ID: <b6c05a470904241253k2db19393r69b4a5b75a1b919f@mail.gmail.com> In-Reply-To: <49F21848.7020005@gmail.com> References: <b6c05a470904241243h97b02c9m983b25d19a3db70@mail.gmail.com> <49F21848.7020005@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
You're right. Works now. Many thanks! On Fri, Apr 24, 2009 at 3:51 PM, Adam Vandemore <amvandemore@gmail.com> wro= te: > Daniel Underwood wrote: >> >> When I am logged in as a non-root user and I try to become root by >> entering "su" and typing the root password, the resulting bash prompt >> does not reflect the contents of /root/.bash_profile >> >> My /root/.bash_profile contains (among other things): >> >> export PS1=3D"[\e[1;31m\]$(tput bold)\u$(tput sgr0)\[\e[0m\]@\h \w]\$ " >> >> The point is to make the username ("root") display in BOLD and RED >> text. =A0After su'ing, the text is not bold nor red. =A0If I then enter >> "source ~/.bash_profile", however, the prompt displays correctly, >> showing "root" in bold and red text. >> >> How come su'ing doesn't seem to effect everything in the >> /root/.bash_profile file? >> >> Thanks, >> Daniel >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to >> "freebsd-questions-unsubscribe@freebsd.org" >> >> > > I think you may need to set that in ~/.bashrc > > -- > Adam Vandemore > Systems Administrator > IMED Mobility > (605) 498-1610 > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b6c05a470904241253k2db19393r69b4a5b75a1b919f>