From owner-freebsd-questions Mon Sep 29 07:15:15 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id HAA12652 for questions-outgoing; Mon, 29 Sep 1997 07:15:15 -0700 (PDT) Received: from relay4.UU.NET (relay4.UU.NET [192.48.96.14]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id HAA12642 for ; Mon, 29 Sep 1997 07:15:12 -0700 (PDT) Received: from firewall.snyder.com by relay4.UU.NET with SMTP (peer crosschecked as: firewall.snyder.com [208.197.122.2]) id QQdjci24641; Mon, 29 Sep 1997 10:15:00 -0400 (EDT) Received: from BETHHQMAIL ([10.1.12.15]) by firewall.snyder.com via smtpd (for relay4.UU.NET [192.48.96.14]) with SMTP; 29 Sep 1997 14:15:52 UT Received: by BETHHQMAIL with Microsoft Exchange (IMC 4.0.837.3) id <01BCCCC1.7D0F9960@BETHHQMAIL>; Mon, 29 Sep 1997 10:21:45 -0400 Message-ID: From: Bob Webb To: "'freebsd-questions@freebsd.org'" Subject: su -m and PS1 Date: Mon, 29 Sep 1997 10:21:44 -0400 X-Mailer: Microsoft Exchange Server Internet Mail Connector Version 4.0.837.3 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I subscribe to the philosophy to login as yourself and su to root when needed. The problem I am having is that I have use bash for my user id with a PS1 that displays the active directory (PS1='\u@\h:\w\$'). I would like to keep this PS1 when I su to root, but it does not work. I tried su -m as well. It keeps my environment intact, EXCEPT for PS1 ! When I su to root, I get a PS1 that is "'\s-\v\$ ' Root does not have a .bash_profile or bashrc, and the .profile has no reference to a PS1. I tried greping around for files containing a reference to PS1 to try and find where root is picking up this PS1 value, but no luck. Any ideas ?? Thanks, Bob/