From owner-freebsd-questions@FreeBSD.ORG Fri Sep 26 22:21:01 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5E02BC3E for ; Fri, 26 Sep 2014 22:21:01 +0000 (UTC) Received: from cosmo.uchicago.edu (cosmo.uchicago.edu [128.135.52.97]) by mx1.freebsd.org (Postfix) with ESMTP id 36645A2 for ; Fri, 26 Sep 2014 22:21:00 +0000 (UTC) Received: by cosmo.uchicago.edu (Postfix, from userid 48) id 401AFCB8CBD; Fri, 26 Sep 2014 17:20:59 -0500 (CDT) Received: from 166.147.100.43 (SquirrelMail authenticated user valeri) by cosmo.uchicago.edu with HTTP; Fri, 26 Sep 2014 17:20:59 -0500 (CDT) Message-ID: <50075.166.147.100.43.1411770059.squirrel@cosmo.uchicago.edu> In-Reply-To: References: <20140926210145.GA10084@neutralgood.org> Date: Fri, 26 Sep 2014 17:20:59 -0500 (CDT) Subject: Re: pkg_delete bash, logged out by accident, can't ssh back in (not good) From: "Valeri Galtsev" To: "firmdog@gmail.com" Reply-To: galtsev@kicp.uchicago.edu User-Agent: SquirrelMail/1.4.8-5.el5.centos.7 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: freebsd-questions@freebsd.org, kpneal@pobox.com X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Sep 2014 22:21:01 -0000 On Fri, September 26, 2014 4:14 pm, firmdog@gmail.com wrote: > Oh boy. I have only 2 accounts on this box. Root and one other > account. Both use bash as default. > > I am completely locked out of this box on the command line? > One thing I would try is ssh user@box.org exec /bin/sh replace with your username and machine name. I am on the road with little ability to test it, so my apology about my stupidity (as it likely will try to invoke default shell first to then execute what exec requests...) Valeri > > > > > On Fri, Sep 26, 2014 at 5:01 PM, wrote: >> On Fri, Sep 26, 2014 at 04:51:32PM -0400, firmdog@gmail.com wrote: >>> I did a pkg_delete of bash and was going to make install a new one >>> from the port, due to shellshock. I logged out by accident, and when >>> try to login via ssh, it won't take my password. I assume I can't >>> login because the default shell is bash, which has been removed right? >> >> Sounds like it. >> >>> Any ideas on how I can get into my remote freebsd box via ssh? >> >> Use a different remote account with a different shell. >> >>> Workarounds? >> >> None. >> -- >> Kevin P. Neal http://www.pobox.com/~kpn/ >> >> "Good grief, I've just noticed I've typed in a rant. Sorry chaps!" >> Keir Finlow Bates, circa 1998 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > ++++++++++++++++++++++++++++++++++++++++ Valeri Galtsev Sr System Administrator Department of Astronomy and Astrophysics Kavli Institute for Cosmological Physics University of Chicago Phone: 773-702-4247 ++++++++++++++++++++++++++++++++++++++++