Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 May 1999 13:20:12 -0700 (PDT)
From:      Gary Kline <kline@tera.com>
To:        tbackman@c523578-a.sttls1.wa.home.com (Todd Backman)
Cc:        dwilde1@thuntek.net, jmutter@netwalk.com, phrotos@email.com, freebsd-questions@FreeBSD.ORG
Subject:   Re: How to change the shell?
Message-ID:  <199905112020.NAA18824@athena.tera.com>
In-Reply-To: <Pine.BSF.4.05.9905111029460.4411-100000@c523578-a.sttls1.wa.home.com> from Todd Backman at "May 11, 99 10:30:16 am"

next in thread | previous in thread | raw e-mail | index | archive | help
According to Todd Backman:
> 
> Thanks for the info...
> 
> On Tue, 11 May 1999, Donald Wilde wrote:
> 
> > Todd Backman wrote:
> > > 
> > > I am just curious as to why it would be a bad idea to change root's shell
> > > to bash... (there are not too many exploits out there for bash)
> > > 
> > > Thanks.
> > > 
> > > On Tue, 11 May 1999, James A. Mutter wrote:
> > > 
> > > > Be careful _not_ to change roots shell to bash, this is regarded as a
> > > > Bad Idea.
> > > >
> > > 
> > The only problem with this is that if the machine can't mount your disks
> > and you need to work in single-user mode, bash won't run. csh and sh are
> > in the root partition /, so they're available. If the machine can't load
> > bash for you, it will fall back to sh, so I've never had a problem doing
> > the simple things I need to do in SU mode. I find that the benefits of
> > having shell consistency far outweigh the downside. I've got enough to
> > learn in this lifetime without having to deal with csh and vi too!
> > -- 
> > Don Wilde                 "Bringing the Internet to everyone!"
> > Wilde Media


	Not only that, but you can turn ash (/bin/sh) into something
	semi-friendly by putting a few /bin/sh functions into
	/root/.profile

	It's probably best not to make life _too_ comfortable as root.
	root is something to avoid for the most part.

	gary



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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