Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Jan 1996 08:49:10 -0600 (CST)
From:      Daniel Baker <dbaker@cocoa.ops.neosoft.com>
To:        Keith Leonard <keithl@gil.net>
Cc:        questions@freebsd.org
Subject:   Re: Help - I'm locked out and don't know how to get in!!!
Message-ID:  <Pine.BSF.3.91.960128084734.279C-100000@cocoa.ops.neosoft.com>
In-Reply-To: <Pine.LNX.3.91.960127234839.28413A-100000@wakko.gil.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 27 Jan 1996, Keith Leonard wrote:

> Anyone,
> I had just changed my shell (to bash) which I assumed (yes I know) was 
> there because I had added it during the initial installation. My son 
> interrupted me, a movie caught my eye, an hour or so latter BSD had 
> autologged me out. Needless to say bash wasn't were it was suppose to be 
> in /usr/bin ( because I hadn't had time to check it before I was logged 
> out). Now when I try to log in as root with the right password BSD tells 
> me that bash isn't in /usr/bin and loops me back to the login prompt. I 
> tried booting single user mode but that only allows me to check the 
> filesystem and look around (ro), so I can't change anything.

Get into single user mode and do a
mount /
mount /usr

which will mount your root partition as read-write and same with your 
user partition.


> 
> No, I don't have a fixit disk or emergency boot disk (bad boy, get in the 
> corner and don't come out until you repent). I swear if somebody can get 
> me back in I'll correct the oversite immediately and never let this happen 
> again. If you haven't guessed - I new to FreeBSD.

Then you should be able to change your shell with chpass to another one.  

BTW, you might need to do a umount /usr before you exit single user mode, 
as it might try and mount it again and not be able to.

> 
> Keith
> keithl@gil.net
> 

Daniel


--				
   Daniel Baker - Daniel@Cuckoo.COM
"Huhuhu, thank you, drive through please"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.960128084734.279C-100000>