Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Mar 2000 19:27:58 -0500
From:      Jim Lawrence <jlawrence@home.com>
To:        freebsd-questions@FreeBSD.ORG
Subject:   How to get back into root
Message-ID:  <38E29F8E.2E1A4FC9@home.com>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38E29F8E.2E1A4FC9>