From owner-freebsd-questions Mon Jun 1 21:44:14 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA08239 for freebsd-questions-outgoing; Mon, 1 Jun 1998 21:44:14 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from freebie.lemis.com (freebie.lemis.com [139.130.136.133]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA08230 for ; Mon, 1 Jun 1998 21:44:08 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: (from grog@localhost) by freebie.lemis.com (8.9.0/8.9.0) id OAA15419; Tue, 2 Jun 1998 14:14:05 +0930 (CST) Message-ID: <19980602141405.J22406@freebie.lemis.com> Date: Tue, 2 Jun 1998 14:14:05 +0930 From: Greg Lehey To: Marco Shaw , freebsd-questions@FreeBSD.ORG Subject: Re: HELP! no shell References: <000701bd8db8$a3243580$0a22a10a@ipo10161034010.nbtel.net> <19980602121231.C22406@freebie.lemis.com> <19980602002334.C16221@flarn.dyn.ml.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <19980602002334.C16221@flarn.dyn.ml.org>; from Matthew Hunt on Tue, Jun 02, 1998 at 12:23:34AM -0400 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 2 June 1998 at 0:23:34 -0400, Matthew Hunt wrote: > On Tue, Jun 02, 1998 at 12:12:31PM +0930, Greg Lehey wrote: > >> You shouldn't use bash in single-user mode, since it's dynamically >> linked and needs the libraries in /usr/lib. Use sh instead, and put >> this in your .profile: >> >> if [ -x /usr/local/bin/bash ]; then >> exec /usr/local/bin/bash >> fi > > I don't understand this point, even though it keeps popping up when > people mention changing root's shell to bash. FreeBSD always prompts > for the shell to run in single-user mode, and always defaults to > /bin/sh. > > If the intent is to form good habits with regard to other Unix > implementations, then that should be clearly stated, because otherwise > it misrepresents FreeBSD's handling of single-user mode. I'm not sure I understand your problem. You do have the choice of single-user shell--at least csh and sh by default, and any other statically-linked shell as well. By default, though, bash is dynamically linked, so it makes more sense to do it this way. Greg -- See complete headers for address and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message