Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh as root login
- X-seq: zsh-users 995
- From: Duncan Sargeant <dunc@xxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxxx
- Subject: Re: zsh as root login
- Date: Fri, 29 Aug 1997 13:40:02 +0800
- In-reply-to: <m3iuwrw6v8.fsf@xxxxxxxxxxxxxxxxx>; from Tim Writer on Wed, Aug 27, 1997 at 07:20:07PM -0400
- References: <199708271045.GAA27847@xxxxxxxxxxxxxxx> <m3iuwrw6v8.fsf@xxxxxxxxxxxxxxxxx>
Tim Writer wrote on Wed August 27, at 19:20 -0400:
> I prefer to keep root dead simple, using /bin/sh without evan a
> .profile. In an emergency, I can (almost) always login as root. For
> day to day administration, I have a second root account (uid 0 but a
> different login name) which has zsh and a full set of startup files as
> its login shell.
That's sort of what I like to do to. I export ZDOTDIR in my user
shell, and use this function for su:
function su {
command su ${*:--c zsh}
}
It gives my a nice root shell when I su, without annoying the rest
of wheel with the extra uid 0 account. It may not suit your needs
depending on how paranoid you are with your regular zsh configuration,
and how paranoid you want to be as root ;-)
cheers
,dunc
--
Duncan Sargeant - metacitizen - http://www.ucc.gu.uwa.edu.au/~dunc/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author