Subject: Re: su'ing to sh's...
To: Peter Seebach <>
From: Jim Wise <>
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
				* Finger for PGP public key *