From owner-freebsd-questions@FreeBSD.ORG Mon Dec 20 17:41:01 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C07EE16A4CE for ; Mon, 20 Dec 2004 17:41:01 +0000 (GMT) Received: from sferics.mongueurs.net (sferics.mongueurs.net [81.80.147.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2841F43D5C for ; Mon, 20 Dec 2004 17:41:01 +0000 (GMT) (envelope-from david@landgren.net) Received: from [127.0.0.1] (exo.bpinet.com [81.80.147.206]) by sferics.mongueurs.net (Postfix) with ESMTP id 30911A9A0 for ; Mon, 20 Dec 2004 18:41:00 +0100 (CET) Message-ID: <41C70EAB.2000302@landgren.net> Date: Mon, 20 Dec 2004 18:40:59 +0100 From: David Landgren Organization: The Lusty Decadent Delights of Imperial Pompeii User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: FreeBSD Questions References: <41C6AC75.6020608@uol.com.br> <20041220120620.GA68520@duplo.dahoam> <20041220133252.GB7774@lb.tenfour> In-Reply-To: <20041220133252.GB7774@lb.tenfour> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: bash - superuser X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Dec 2004 17:41:01 -0000 Dick Davies wrote: > * Gerhard Meier [1207 12:07]: > >>On Mon, Dec 20, 2004 at 08:41:57AM -0200, Giuliano Cardozo Medalha wrote: >> >>>I have a machine with FreeBSD 5.3 - release -p2. >>> >>>I have installed bash from ports. >>> >>>How is possible to use bash in root account ? >> >>Do not change the shell of the root account. If you have /usr or >>/usr/local on a separate partition, and you cannot mount for some >>reason, you wont be able to fix that, without booting from >>another device. > > > No, but you'll still be able to use /bin/sh when going single user, so > what's the big deal? > > I really don't get what the problem is with this 'sh is on the root' argument. > Using bash is a lot more productive for many people, so why not let them use it? > If you're really terrified of not knowing how to use sh, then stick a static bash > in /bin. > > To the original poster: just be root and run 'chsh'. No. When you are logged in as root, you *should* have to go through extra hoops to get comfortable. I am not saying that you should not use bash when logged in as root. I am saying that you should not configure your root account to login with shell that is dysfunctional if /usr is unmounted. Yes, 'exec zsh' or whatever is a minor hassle, but it's there to remind you that root is different. If the OP had to ask, then it's pretty clear that he shouldn't. David