Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Charles M Richmond <cmr@iisc.com>
Subject: Re: preserving/re-creating alias(s) when using su
Date: 1998/12/16	[thread overview]
Message-ID: <36780B7F.62AE11E7@iisc.com> (raw)
In-Reply-To: 3676689a.410514727@news.mindspring.com

"Sandlin,William" wrote:
> 
> I'm using the Korn shell under Unix 4.0 and have a number of aliases
> being defined in .profile.  The application I am working with requires
> that I perform some management functions as the root.  My problem is
> that I loose all of my aliases when I su (the documentation says this
> is supposed to happen).
> 
> How can these be preserved??  If they cannot be preserved, is there a
> profile that is executed when I su that I could also have the aliases
> defined in.
> 

Try putting your aliases, environment variables, etc, in ~/.kshrc and
in your .profile, put "ENV=$USER/.kshrc; export ENV"

-- 
***********************************************************************
*  Charles Richmond    Integrated International Systems Corporation   *
*  cmr@iisc.com        cmr@koibito.iisc.com  cmr@shore.net            *
*  UNIX Internals, I18N, L10N, X, Realtime Imaging, and  Custom S/W   *
*  One Longfellow Place Suite 3309 , Boston , Ma. USA 02114-2431      *
*  (617) 723 7695    (617) 367 3151        FAX (617) 723 6861         *
***********************************************************************



  parent reply	other threads:[~1998-12-16  5:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-12-15  5:00 preserving/re-creating alias(s) when using su Sandlin,William
1998-12-15  5:00 ` Pierre Asselin
1998-12-15  5:00   ` Nikola Milutinovic
1998-12-18  5:00   ` Mark@Ace
1998-12-18  5:00   ` Mark@Ace
1998-12-18  5:00   ` Mark@Ace
1998-12-16  5:00 ` Charles M Richmond [this message]
1998-12-16  5:00 ` Bob Koehler
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox