From owner-freebsd-questions@FreeBSD.ORG Fri Apr 24 19:51:42 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 53B5E106566B for ; Fri, 24 Apr 2009 19:51:42 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.30]) by mx1.freebsd.org (Postfix) with ESMTP id 0B1128FC0A for ; Fri, 24 Apr 2009 19:51:41 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: by yx-out-2324.google.com with SMTP id 8so787312yxb.13 for ; Fri, 24 Apr 2009 12:51:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=0mWxdnQv5mtdNhdBat/I/wyfeu2D/ioMVmdOex0mhFw=; b=arWek3cVQwQsEiwdvWXobb/c7ZS4W6CnrEoqzyv6Tds7icoV/PwMm5ywvkPIycBbNN YSFDEvMYXSJIWmee19Cdk2D0ukIEjVx8xxbUd8WWRcKJy09bvGyBejyLoPletUkIML+k YBvlB0l5E5k9U3yEFnD8W/kv0qh8EdOHdV7s8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=ks/TkID6+Ak9sGukriGHw1kFnRu7MiROaWmUFCfVcvsQA5sZHa34M0xkzCqAp0ktuj 3+O4HC7jmbh3NDHLZ1iySOVK2RU3f9uxUzyuFIDs2oJr9lwzO0+wA63qSC7szgmVG5Bj gAPUDqZviEyZo4cknIjP4DFteLoiEFFEHNzNo= Received: by 10.90.53.5 with SMTP id b5mr621475aga.87.1240602700879; Fri, 24 Apr 2009 12:51:40 -0700 (PDT) Received: from ?216.16.29.53? (host-53.216-16-29.iw.net [216.16.29.53]) by mx.google.com with ESMTPS id 5sm3119000agc.15.2009.04.24.12.51.39 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 24 Apr 2009 12:51:40 -0700 (PDT) Message-ID: <49F21848.7020005@gmail.com> Date: Fri, 24 Apr 2009 14:51:36 -0500 From: Adam Vandemore User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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:51:42 -0000 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="[\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. After su'ing, the text is not bold nor red. If 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