From: Pierre Asselin <pa@roscamp.com>
Subject: Re: preserving/re-creating alias(s) when using su
Date: 1998/12/15 [thread overview]
Message-ID: <367699BC.6006A4F4@roscamp.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.
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.
next prev parent reply other threads:[~1998-12-15 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 [this message]
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
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