From owner-freebsd-questions Fri Jun 25 19: 7:14 1999 Delivered-To: freebsd-questions@freebsd.org Received: from pianosa.catch22.org (pianosa.catch22.org [198.88.183.223]) by hub.freebsd.org (Postfix) with ESMTP id 3116C157F7 for ; Fri, 25 Jun 1999 19:07:07 -0700 (PDT) (envelope-from doyle@pianosa.catch22.org) Received: (from doyle@localhost) by pianosa.catch22.org (8.9.3/8.9.2) id VAA05488 for freebsd-questions@FreeBSD.ORG; Fri, 25 Jun 1999 21:07:06 -0500 Date: Fri, 25 Jun 1999 19:07:06 -0700 From: "Rev. Joe Doyle" To: freebsd-questions@FreeBSD.ORG Subject: Re: Change root shell Message-ID: <19990625190706.A5453@uiuc.edu> Reply-To: "Rev. Joe Doyle" Mail-Followup-To: freebsd-questions@FreeBSD.ORG References: <19990625165801.A4321@uiuc.edu> <19990625182824.A10339@ethereal.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95i In-Reply-To: <19990625182824.A10339@ethereal.net>; from Jamie Norwood on Fri, Jun 25, 1999 at 06:28:24PM -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Jun 25, 1999 at 06:28:24PM -0700, Jamie Norwood wrote: > On Fri, Jun 25, 1999 at 06:00:35PM -0700, Todd Backman wrote: > > > > I've been told it's a no-no to change root's shell to bash in the event > > that /usr does not get mounted. 'exec bash' will only load bash for that > > session and goes away after you log out... > > I've always made it a point to install tcsh in /bin so that I can use it as > root. > Of course, one could also cp bash into somewhere on your root partition. > > Besides, correct me if I am wrong, but in a panic situation starting a shell, > it defaults to SH no matter what /etc/password says. So why does it matter > which shell you have it set to use in normal usage? > Even that is true (I don't know; I know it's not on Solaris or IRIX or Linux), there are times when you need a statically linked shell and other utilities (cp, especially) in a non-panic'd situation (if you accidently remove some librairies, for example). Don't rely on mechanisms like "automatic use of sh when the shit hits the fan" for your safety net. -Joe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message