From owner-freebsd-questions@FreeBSD.ORG Mon Dec 20 14:50:05 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 BB70916A4CE for ; Mon, 20 Dec 2004 14:50:05 +0000 (GMT) Received: from ei.bzerk.org (ei.xs4all.nl [213.84.67.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB4F143D3F for ; Mon, 20 Dec 2004 14:50:02 +0000 (GMT) (envelope-from mail25@bzerk.org) Received: from ei.bzerk.org (BOFH@localhost [127.0.0.1]) by ei.bzerk.org (8.13.1/8.13.1) with ESMTP id iBKEqROW025572; Mon, 20 Dec 2004 15:52:28 +0100 (CET) (envelope-from mail25@bzerk.org) Received: (from bulk@localhost) by ei.bzerk.org (8.13.1/8.13.1/Submit) id iBKEqRbL025571; Mon, 20 Dec 2004 15:52:27 +0100 (CET) (envelope-from mail25@bzerk.org) Date: Mon, 20 Dec 2004 15:52:27 +0100 From: Ruben de Groot To: Dick Davies Message-ID: <20041220145227.GA24495@ei.bzerk.org> Mail-Followup-To: Ruben de Groot , Dick Davies , FreeBSD Questions References: <41C6AC75.6020608@uol.com.br> <20041220120620.GA68520@duplo.dahoam> <20041220133252.GB7774@lb.tenfour> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041220133252.GB7774@lb.tenfour> User-Agent: Mutt/1.4.2.1i X-Spam-Status: No, score=-2.3 required=5.0 tests=ALL_TRUSTED, FROM_ENDS_IN_NUMS autolearn=failed version=3.0.0 X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on ei.bzerk.org cc: FreeBSD Questions 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 14:50:05 -0000 On Mon, Dec 20, 2004 at 01:32:53PM +0000, Dick Davies typed: > * 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? Using a shell not contained in the root filesystem can cause problems even when not in single user mode. There are enough examples in the archives. > 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? No problem for people to be productive with bash or whatever shell they prefer. Just not for root. You should not even use the root account unless absolutely necessary.