From owner-freebsd-questions Wed Mar 29 16:29:18 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.rdc1.nj.home.com (ha1.rdc1.nj.home.com [24.3.128.66]) by hub.freebsd.org (Postfix) with ESMTP id 0F39E37B6DD for ; Wed, 29 Mar 2000 16:29:12 -0800 (PST) (envelope-from jlawrence@home.com) Received: from home.com ([24.3.202.232]) by mail.rdc1.nj.home.com (InterMail v4.01.01.00 201-229-111) with ESMTP id <20000330002911.ZSNE20681.mail.rdc1.nj.home.com@home.com> for ; Wed, 29 Mar 2000 16:29:11 -0800 Message-ID: <38E29F8E.2E1A4FC9@home.com> Date: Wed, 29 Mar 2000 19:27:58 -0500 From: Jim Lawrence Organization: @Home Network X-Mailer: Mozilla 4.61 [en]C-AtHome0407 (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-questions@FreeBSD.ORG Subject: How to get back into root Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I am new to FreeBSD and new to this list, and really appreciate any answers anybody can give me to the following problem... OK, I did something dumb. While logged in as root, I wondered why I couldn't get previous commands at the command line by using the up arrow as I had on other systems. I looked up something in a book, and without really checking things out or being careful, I did the following: I used chsh to bring up my login configuration, and used vi to change my login shell from /bin/csh to /bin/bash, saved, exited, and logged out. Of course, I never bothered to see if the file /bin/bash actually existed... Now, when I try to log in as root, it runs the beginnings of a session (the stuff you see before the command prompt), then gives the error "/bin/bash - no such file or directory" and brings me back to the login prompt. I can still log in as my username, but I can't get to any root configuration-type things, and I don't have write access to /bin to install the bash on. Any ideas on how I can get back in the system as root without reinstalling? Any help is appreciated. Jim Lawrence To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message