From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,ff9357adfe82f462 X-Google-Attributes: gidfee84,public From: Charles M Richmond Subject: Re: preserving/re-creating alias(s) when using su Date: 1998/12/16 Message-ID: <36780B7F.62AE11E7@iisc.com>#1/1 X-Deja-AN: 422976855 Content-Transfer-Encoding: 7bit References: <3676689a.410514727@news.mindspring.com> X-Accept-Language: ja Content-Type: text/plain; charset=iso-2022-jp X-Complaints-To: abuse@shore.net X-Trace: news.shore.net 913836928 198.5.5.5 (Wed, 16 Dec 1998 14:35:28 EDT) Organization: Integrated International Systems Corporation MIME-Version: 1.0 NNTP-Posting-Date: Wed, 16 Dec 1998 14:35:28 EDT Newsgroups: comp.unix.osf.osf1 "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 * ***********************************************************************