Subject: Re: su'ing to sh's...
To: Peter Seebach <seebs@solon.com>
From: Jim Wise <jw250@columbia.edu>
List: current-users
Date: 02/01/1997 20:30:29
On Sat, 1 Feb 1997, Peter Seebach wrote:

> Can anyone suggest a good way to make it possible for root to have a
> small profile loaded automatically on su?  Essentially, I want something
> like .cshrc, but for ksh.  ENV doesn't work, because the su'd sh is visibly
> privileged.

If you use the '-l' flag to su (or the undocumented '-' flag), a full
login session will be started with all of the startup-file processing which
that entails.

--
				Jim Wise
				jim@santafe.arch.columbia.edu
				http://www.arch.columbia.edu/~jim
				* Finger for PGP public key *