From owner-freebsd-questions@FreeBSD.ORG Tue Dec 21 10:57:21 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 CDF3316A4CE for ; Tue, 21 Dec 2004 10:57:21 +0000 (GMT) Received: from ei.bzerk.org (ei.xs4all.nl [213.84.67.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2A8A543D66 for ; Tue, 21 Dec 2004 10:57:21 +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 iBLAxk0l077440; Tue, 21 Dec 2004 11:59:46 +0100 (CET) (envelope-from mail25@bzerk.org) Received: (from bulk@localhost) by ei.bzerk.org (8.13.1/8.13.1/Submit) id iBLAxk2w077439; Tue, 21 Dec 2004 11:59:46 +0100 (CET) (envelope-from mail25@bzerk.org) Date: Tue, 21 Dec 2004 11:59:46 +0100 From: Ruben de Groot To: Tom Vilot Message-ID: <20041221105946.GB53768@ei.bzerk.org> Mail-Followup-To: Ruben de Groot , Tom Vilot , freebsd-questions@freebsd.org References: <41C6AC75.6020608@uol.com.br> <20041220120620.GA68520@duplo.dahoam> <20041220133252.GB7774@lb.tenfour> <20041220145227.GA24495@ei.bzerk.org> <41C6EE24.4080606@vilot.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <41C6EE24.4080606@vilot.com> 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@freebsd.org 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: Tue, 21 Dec 2004 10:57:22 -0000 On Mon, Dec 20, 2004 at 08:22:12AM -0700, Tom Vilot typed: > > Admittedly, I'm still a bit of a noob, but I can't stand any shell but > bash. That's fine untill you're going to troubleshoot/administer a system with no bash installed. > >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. > > > > Ya mean like ... > > ... editing /etc/rc.conf > ... installing a port or package > ... updating the ports tree and/or running portupgrade > ... configuring the firewall > ... backing up the file system > ... checking /var/log files for attempts at cracking > ... reading root's email > ... rsyncing to a remote server > > I would be curious how I could do any of the above as someone other than > root. While most of these tasks do indeed require root-privileges, none of them requires more then a single command line. This command line would be exactly the same wether you're using bash or [[t]c]sh so there's no reason for changing root's default shell here.