make buildworld does nothing
Oliver Fromme
olli at lurza.secnetix.de
Tue Aug 22 12:49:33 UTC 2006
Doug Barton <dougb at 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
More information about the freebsd-stable
mailing list