Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Apr 2009 22:34:46 +0200
From:      "Peter Cornelius" <pcc@gmx.net>
To:        Patrick Mahan <mahan@mahan.org>, djuatdelta@gmail.com
Cc:        freebsd-questions@freebsd.org
Subject:   Re: su'ing not sourcing .bash_profile
Message-ID:  <20090424203446.235660@gmx.net>
In-Reply-To: <49F21D52.90209@mahan.org>
References:  <b6c05a470904241243h97b02c9m983b25d19a3db70@mail.gmail.com> <49F21D52.90209@mahan.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090424203446.235660>