Date: Mon, 20 Dec 2004 16:54:51 -0500 (EST) From: Jerry McAllister <jerrymc@clunix.cl.msu.edu> To: tom@vilot.com (Tom Vilot) Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: bash - superuser Message-ID: <200412202154.iBKLsrt13676@clunix.cl.msu.edu> In-Reply-To: <41C6EE24.4080606@vilot.com> from "Tom Vilot" at Dec 20, 2004 08:22:12 AM
next in thread | previous in thread | raw e-mail | index | archive | help
> > >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. > > > Admittedly, I'm still a bit of a noob, but I can't stand any shell but > bash. > > >>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. > > > 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. Then the thing to do is create another root account and make the default shell for that one be bash, leaving the root root be /bin/sh. Then, just use the other account for all that stuff, and keep the root root pristine for disasters. Alternatively, while you are logged in as the root root and the needed file systems are mounted, type '/usr/local/bin/bash' or whatever path it is installed as and viola you have bash. ////jerry
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200412202154.iBKLsrt13676>