From owner-freebsd-questions@FreeBSD.ORG Fri Apr 24 19:43:31 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 DC70D106564A for ; Fri, 24 Apr 2009 19:43:31 +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 6EF2E8FC21 for ; Fri, 24 Apr 2009 19:43:30 +0000 (UTC) (envelope-from djuatdelta@gmail.com) Received: by fxm6 with SMTP id 6so915356fxm.43 for ; Fri, 24 Apr 2009 12:43:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=ZNqPjW36sxhKw+5WohXJg3J6vUggA3W2lAn8+vzR3O4=; b=c49vne8gYjqzTRqknCDinmOiad/dmRlCGsduQKEI92KQC9jQ1Dy06YPC8QUtwTH99t +gFWAXSURDAltcyin9CX/T5q21vZ6CnflYcZBb1+QHxJnjf2BkcmPKbj5z1vHclLX+bL go5XYNYhtghxOyTNKCRxsmXHrPACgdTLW2ePU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=B43EyGOc5w6iLpdOOBmg4V0smOxqoQuS0uu/DluYgPJWgR+vhfmowaWPJlNwjTPh5L Xzkh1NLdGol4EivSpZg4YznV0FN0Od5Jd5+kJF1JkNu5GTtGsm5q2sttaFByGo7FCZ4f 2BdI5Y23J/ijeNKUfcLZjdAI5ty1RHsuipHIE= MIME-Version: 1.0 Received: by 10.239.152.7 with SMTP id t7mr136118hbb.9.1240602210197; Fri, 24 Apr 2009 12:43:30 -0700 (PDT) Date: Fri, 24 Apr 2009 15:43:30 -0400 Message-ID: From: Daniel Underwood To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: 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:43:32 -0000 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