Date: Sat, 27 Sep 2014 09:39:18 -0500 From: Alex Stangl <alex@stangl.us> To: freebsd-questions@freebsd.org Subject: Re: pkg_delete bash, logged out by accident, can't ssh back in (not good) Message-ID: <20140927143918.GA7013@scout.stangl.us> In-Reply-To: <CAHcg-UFVFBdj9TsJQKveCA4dRxGBxQWb5aATXsS=FVCHg_DT_A@mail.gmail.com> References: <CAHcg-UGOAjobmTnWM9%2B5PiE23wXrDO8v31p5QCF07ar8aXEV8A@mail.gmail.com> <20140926210145.GA10084@neutralgood.org> <CAHcg-UFahAwG7%2BhgDiK-OLGqS_H0nKjeR4wozRHwauaUUFEsQA@mail.gmail.com> <50075.166.147.100.43.1411770059.squirrel@cosmo.uchicago.edu> <CAHcg-UFVFBdj9TsJQKveCA4dRxGBxQWb5aATXsS=FVCHg_DT_A@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Sep 26, 2014 at 08:04:53PM -0400, firmdog@gmail.com wrote: > Didn't work. Thanks for the idea! > > But I just got home and happen to have a shell open from a laptop. So lucky > and fortunate that I had a shell open from home. Glad to hear you got it w/o much trouble. I just want to add a couple things to the good advice already shared here. It's good to keep a bootable DVD on-hand, for the same FreeBSD version you are running. You have the option of booting off the DVD, mounting the hard drive file systems, and then replacing the missing/corrupted files from the DVD. I'm paranoid about my login shell getting screwed up like this, and getting locked out. So I always keep my login shell set to /bin/sh or /bin/tcsh, and then switch over to whatever shell I actually want to use via a command like "exec mksh", either manually typed, or put into one of the shell startup files. If the alternative shell gets screwed up somehow, then you cannot exec it, but you're not locked out of the system. Alex
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140927143918.GA7013>