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: Pierre Asselin Subject: Re: preserving/re-creating alias(s) when using su Date: 1998/12/15 Message-ID: <367699BC.6006A4F4@roscamp.com>#1/1 X-Deja-AN: 422553374 X-Report: Report abuse to abuse@uswest.net. Content-Transfer-Encoding: 7bit References: <3676689a.410514727@news.mindspring.com> Content-Type: text/plain; charset=us-ascii X-Trace: 15 Dec 1998 11:18:30 +0600, 209.180.251.66 Organization: Roscamp Engineering MIME-Version: 1.0 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. You could create a secondary root account, with a uid of zero but with a different login, password, home directory etc. than root. You can then customize that account identically to yours. When the need arises, you just "su -" to that account and change directory back to where you were. You could even make the account's home directory be the normal maintenance directory for the application (if there is such a thing). Whatever you do, DON'T CUSTOMIZE ROOT. root has to be able to login in single-user mode even if the network is down, or /usr is corrupted, etc.