From owner-freebsd-questions Tue Sep 23 13:49:39 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id NAA04370 for questions-outgoing; Tue, 23 Sep 1997 13:49:39 -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 NAA04363 for ; Tue, 23 Sep 1997 13:49:35 -0700 (PDT) Received: from firewall.snyder.com by relay4.UU.NET with SMTP (peer crosschecked as: firewall.snyder.com [208.197.122.2]) id QQdihf19674; Tue, 23 Sep 1997 16:49:15 -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; 23 Sep 1997 20:49:35 UT Received: by BETHHQMAIL with Microsoft Exchange (IMC 4.0.837.3) id <01BCC841.5C7F5750@BETHHQMAIL>; Tue, 23 Sep 1997 16:54:30 -0400 Message-ID: From: Bob Webb To: "'freebsd-questions@freebsd.org'" Subject: su -m and PS1 Date: Tue, 23 Sep 1997 16:54:28 -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 have read the messages on su and PS1, and 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 keep 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 not 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/