From owner-freebsd-stable@FreeBSD.ORG Tue Aug 22 12:49:33 2006 Return-Path: X-Original-To: freebsd-stable@FreeBSD.ORG Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 06D8616A4E1; Tue, 22 Aug 2006 12:49:33 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id E685D43DAB; Tue, 22 Aug 2006 12:49:08 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (fmhmda@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id k7MCn1KO099005; Tue, 22 Aug 2006 14:49:06 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id k7MCn1M8099004; Tue, 22 Aug 2006 14:49:01 +0200 (CEST) (envelope-from olli) Date: Tue, 22 Aug 2006 14:49:01 +0200 (CEST) Message-Id: <200608221249.k7MCn1M8099004@lurza.secnetix.de> From: Oliver Fromme To: freebsd-stable@FreeBSD.ORG, dougb@FreeBSD.ORG In-Reply-To: <44E9EB82.7010104@FreeBSD.org> X-Newsgroups: list.freebsd-stable User-Agent: tin/1.8.0-20051224 ("Ronay") (UNIX) (FreeBSD/4.11-STABLE (i386)) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Tue, 22 Aug 2006 14:49:06 +0200 (CEST) Cc: Subject: Re: make buildworld does nothing X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-stable@FreeBSD.ORG, dougb@FreeBSD.ORG List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Aug 2006 12:49:33 -0000 Doug Barton 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