Date: Tue, 22 Aug 2006 14:49:01 +0200 (CEST) From: Oliver Fromme <olli@lurza.secnetix.de> To: freebsd-stable@FreeBSD.ORG, dougb@FreeBSD.ORG Subject: Re: make buildworld does nothing Message-ID: <200608221249.k7MCn1M8099004@lurza.secnetix.de> In-Reply-To: <44E9EB82.7010104@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Doug Barton <dougb@freebsd.org> wrote:
> Oliver Fromme wrote:
> > Doug Barton wrote:
> > > Tom Hummel wrote:
> > > > alright, it was bash :( stupid shell.
> > >
> > > Um, sorry, let's not blame the shell for the BCK (between chair and
> > > keyboard) problem. Lots of us use bash as our everyday shell (for privileged
> > > and unprivileged users) without the kinds of problems you described. The
> > > first thing I do when I install a new freebsd machine is to change root's
> > > shell to /bin/sh, and copy over my customized .profile which either execs
> > > bash if it finds it, or sets up sh with my aliases, etc.
> >
> > That's what "su -m" is good for.
>
> There are actually some things in root's environment that I want to be
> different
Me too. That's why I have this in my ~/.zshrc:
if [[ $EUID -ne 0 ]]; then
... # settings for non-root only
else
... # settings for root only
fi
When a new machine gets into my hands, all I have to do
is copy over my ~/.zshrc. Then I will have my familiar
work environment, both as normal user and as root.
Another good thing about that approach is the fact that
you don't have to change anything outside of your home.
In particular, you don't have to change root's login shell
or anything inside root's home, so other admins on the
machine aren't affected at all, and everyone can use his
own favourite shell and profile, without interfering with
anybody else.
Best regards
Oliver
--
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing
Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.
"C++ is to C as Lung Cancer is to Lung."
-- Thomas Funke
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608221249.k7MCn1M8099004>
