Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Dec 2004 11:59:46 +0100
From:      Ruben de Groot <mail25@bzerk.org>
To:        Tom Vilot <tom@vilot.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: bash - superuser
Message-ID:  <20041221105946.GB53768@ei.bzerk.org>
In-Reply-To: <41C6EE24.4080606@vilot.com>
References:  <41C6AC75.6020608@uol.com.br> <20041220120620.GA68520@duplo.dahoam> <20041220133252.GB7774@lb.tenfour> <20041220145227.GA24495@ei.bzerk.org> <41C6EE24.4080606@vilot.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041221105946.GB53768>