From owner-freebsd-questions@FreeBSD.ORG Fri Apr 24 19:53:43 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 11785106573A for ; Fri, 24 Apr 2009 19:53:43 +0000 (UTC) (envelope-from djuatdelta@gmail.com) Received: from mail-fx0-f162.google.com (mail-fx0-f162.google.com [209.85.220.162]) by mx1.freebsd.org (Postfix) with ESMTP id 6FA3E8FC20 for ; Fri, 24 Apr 2009 19:53:42 +0000 (UTC) (envelope-from djuatdelta@gmail.com) Received: by fxm6 with SMTP id 6so919126fxm.43 for ; Fri, 24 Apr 2009 12:53:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=mfwPFrvuROnyYtHt1iLGHygi8iccWLiq8WwMCVDYnKY=; b=ufm00pCCWuXuiV3HmL+IA/kAHuP4revjKH9F4rEW/BkYNpPWfQ3kFxjLYu7D0ClKTy U/gB96QTxYc9H+8sKz0O5GiiviR9ThaqPY+UCtNPX+h/QQV6pS85OXsaXFg+6dCSW/Rn ph2q81edp7HouDRfNtRSAdWEfYuYfv3WWDsaA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=JHi+hP7oXxoWkUO5ZUYz8yGCtnFarbTiCBN9KCVogXrrCnU5g99oAHedCrqdIy/I1t hiGEffcOlh1dKaF8jv74efcenDiP7BVKQ6GXWz4JBi+b4S2668zTrgjOF981TDiTtYSr XqwK62WdekHhhWhlloABdCd/9uYf8rrFeWecI= MIME-Version: 1.0 Received: by 10.239.162.205 with SMTP id m13mr137304hbd.87.1240602821073; Fri, 24 Apr 2009 12:53:41 -0700 (PDT) In-Reply-To: <49F21848.7020005@gmail.com> References: <49F21848.7020005@gmail.com> Date: Fri, 24 Apr 2009 15:53:41 -0400 Message-ID: From: Daniel Underwood To: Adam Vandemore Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: su'ing not sourcing .bash_profile X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Apr 2009 19:53:44 -0000 You're right. Works now. Many thanks! On Fri, Apr 24, 2009 at 3:51 PM, Adam Vandemore 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" >