From owner-freebsd-questions Mon Jun 1 21:18:04 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA02709 for freebsd-questions-outgoing; Mon, 1 Jun 1998 21:18:04 -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 VAA02575 for ; Mon, 1 Jun 1998 21:16:47 -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 AAA16309; Tue, 2 Jun 1998 00:16:50 -0400 (EDT) (envelope-from mph) Message-ID: <19980602001650.A16221@flarn.dyn.ml.org> Date: Tue, 2 Jun 1998 00:16:50 -0400 From: Matthew Hunt To: Marco Shaw , freebsd-questions@FreeBSD.ORG Subject: Re: HELP! no shell Mail-Followup-To: Marco Shaw , freebsd-questions@FreeBSD.ORG References: <000201bd8db4$9788da40$0a22a10a@ipo10161034010.nbtel.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <000201bd8db4$9788da40$0a22a10a@ipo10161034010.nbtel.net>; from Marco Shaw on Mon, Jun 01, 1998 at 08:25:41PM -0300 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Jun 01, 1998 at 08:25:41PM -0300, Marco Shaw wrote: > I just installed my system today. I prefer the BASH shell, so I immediately > changed my shell (root) to BASH. I presumed that it was in /bin/bash and > already installed, BUT it wasn't. Now I can't login as root, I just get > kicked back to the login prompt, and I can't 'su' to root because the groups > aren't setup right! Reboot the machine. At the "Boot:" prompt, type "-s" to boot in single user mode. You will be asked for a shell; accept the default of "/bin/sh". At the prompt, do the following: # fsck -p (In case the filesystems are unclean) # mount -a (Mount the filesystems) # TERM=cons25 export TERM (your editor will want this) # chsh (Change shell; choose /bin/sh) # shutdown -r now (Reboot) Lessons to be learned: (a) FreeBSD is not Linux; as far as I know, only Linux ships bash in /bin. (b) When changing something that will affect root's ability to login (shell, password, etc.) keep a root shell open until you have logged in with the new setting. (c) This question has probably been answered before. Certainly the similar problem of forgetting root's password has been. If you did not consult the mailing list archives at www.freebsd.org (under "Search") you should do so in the future. Regards, Matthew -- 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