From owner-freebsd-questions@FreeBSD.ORG Fri Apr 24 20:34:50 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 ACFE0106566B for ; Fri, 24 Apr 2009 20:34:50 +0000 (UTC) (envelope-from pcc@gmx.net) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id EA7128FC1A for ; Fri, 24 Apr 2009 20:34:49 +0000 (UTC) (envelope-from pcc@gmx.net) Received: (qmail 11700 invoked by uid 0); 24 Apr 2009 20:34:48 -0000 Received: from 84.163.247.138 by www037.gmx.net with HTTP; Fri, 24 Apr 2009 22:34:46 +0200 (CEST) Content-Type: text/plain; charset="iso-8859-1" Date: Fri, 24 Apr 2009 22:34:46 +0200 From: "Peter Cornelius" In-Reply-To: <49F21D52.90209@mahan.org> Message-ID: <20090424203446.235660@gmx.net> MIME-Version: 1.0 References: <49F21D52.90209@mahan.org> To: Patrick Mahan , djuatdelta@gmail.com X-Authenticated: #491680 X-Flags: 0001 X-Mailer: WWW-Mail 6100 (Global Message Exchange) X-Priority: 5 X-Provags-ID: V01U2FsdGVkX19HpHU3/WFHjDDwCQ1nHQxby6hiiFdMDS+t1L/jBC CyW7963I9U4d+VFYzAco1DgD1CvNTO3HChOQ== Content-Transfer-Encoding: 8bit X-GMX-UID: BkuHejppODB6VMrhdGRMXbY9Ji9SWtJQ X-FuHaFi: 0.75 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 20:34:50 -0000 Hi, > > 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 > Because .bash_profile is only seen on login, not on 'su'. Put > it in .bashrc which is read when the shell is invoked. su - maybe? If you can live with ending up in ~root/, of course ;-) Rgds., Peter. -- Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger01