From owner-freebsd-questions Tue May 11 13:20:33 1999 Delivered-To: freebsd-questions@freebsd.org Received: from gershwin.tera.com (gershwin.tera.com [207.224.230.28]) by hub.freebsd.org (Postfix) with ESMTP id 3A96A151F5 for ; Tue, 11 May 1999 13:20:25 -0700 (PDT) (envelope-from kline@tera.com) Received: from athena.tera.com (athena.tera.com [207.224.230.169]) by gershwin.tera.com (8.8.8/8.8.8) with ESMTP id NAA03113; Tue, 11 May 1999 13:20:14 -0700 (PDT) From: Gary Kline Received: (from kline@localhost) by athena.tera.com (8.7.5/8.7.3) id NAA18824; Tue, 11 May 1999 13:20:13 -0700 (PDT) Message-Id: <199905112020.NAA18824@athena.tera.com> Subject: Re: How to change the shell? In-Reply-To: from Todd Backman at "May 11, 99 10:30:16 am" To: tbackman@c523578-a.sttls1.wa.home.com (Todd Backman) Date: Tue, 11 May 1999 13:20:12 -0700 (PDT) Cc: dwilde1@thuntek.net, jmutter@netwalk.com, phrotos@email.com, freebsd-questions@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL23 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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