From owner-freebsd-questions Mon Jun 1 21:23:53 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA04059 for freebsd-questions-outgoing; Mon, 1 Jun 1998 21:23:53 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from flarn.dyn.ml.org (mph@usr233.third-wave.com [147.72.122.96]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA03982 for ; Mon, 1 Jun 1998 21:23:31 -0700 (PDT) (envelope-from mph@flarn.dyn.ml.org) Received: (from mph@localhost) by flarn.dyn.ml.org (8.8.8/8.8.8) id AAA16357; Tue, 2 Jun 1998 00:23:34 -0400 (EDT) (envelope-from mph) Message-ID: <19980602002334.C16221@flarn.dyn.ml.org> Date: Tue, 2 Jun 1998 00:23:34 -0400 From: Matthew Hunt To: Greg Lehey , Marco Shaw , freebsd-questions@FreeBSD.ORG Subject: Re: HELP! no shell Mail-Followup-To: Greg Lehey , Marco Shaw , freebsd-questions@FreeBSD.ORG References: <000701bd8db8$a3243580$0a22a10a@ipo10161034010.nbtel.net> <19980602121231.C22406@freebie.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <19980602121231.C22406@freebie.lemis.com>; from Greg Lehey on Tue, Jun 02, 1998 at 12:12:31PM +0930 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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. > You should be able to reboot in single user mode and fix this. > Compare the instructions on page 157 of "The Complete FreeBSD", second > edition (http://www.cdrom.com/titles/os/bsdbook2.htm): [ Excellent instructions removed. Wish I hadn't spent my time composing my own in response to the *other* copy of this question. ] Regards, Matt -- Matthew Hunt * Stay close to the Vorlon. http://www.pobox.com/~mph/pgp.key for PGP public key 0x67203349. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message