From owner-freebsd-questions@FreeBSD.ORG Sat Sep 27 13:14:20 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 7060C1AD for ; Sat, 27 Sep 2014 13:14:20 +0000 (UTC) Received: from mail-qg0-x22e.google.com (mail-qg0-x22e.google.com [IPv6:2607:f8b0:400d:c04::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2F27ACC2 for ; Sat, 27 Sep 2014 13:14:20 +0000 (UTC) Received: by mail-qg0-f46.google.com with SMTP id q108so10324113qgd.33 for ; Sat, 27 Sep 2014 06:14:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=T4WbyspxC/PxhourXVjRbm/cub0QHsT6X4+2V22W6Io=; b=zEPFRHBuivz7okeNjvFsd+AqDlNdFUBKeS5Rd09sdXayIFmGjK5TgzdxV4c1llB8os 4froYaHW/iZ3hed6WAx9GexiptY+gOoel5BeZfsMN5AT3uQg1nqKwKYx2FaEEiXZrGOW 2Z/adanG7TpfWbRRdPc+qSXybVVQrctm3NShH2m76cT7BiGN22pJ7bhUujj+bgDQel/s Mbz7vVBpV0wYWGX7kj5NqUJwbY8M80svGHuGWiIr7P56PRGMjiQhL7nPieX8SZz2+djK ATEXZy2RHD5tVXDaTVF3xz7luxyTQ0gNiXBi9kWfm/nz+1I/43ogxnA+tjJFwtHr3FEw x3tw== MIME-Version: 1.0 X-Received: by 10.224.54.129 with SMTP id q1mr38052259qag.6.1411823659329; Sat, 27 Sep 2014 06:14:19 -0700 (PDT) Received: by 10.96.27.103 with HTTP; Sat, 27 Sep 2014 06:14:19 -0700 (PDT) In-Reply-To: <54264510.1080901@is.co.za> References: <20140926210145.GA10084@neutralgood.org> <50075.166.147.100.43.1411770059.squirrel@cosmo.uchicago.edu> <54264510.1080901@is.co.za> Date: Sat, 27 Sep 2014 09:14:19 -0400 Message-ID: Subject: Re: pkg_delete bash, logged out by accident, can't ssh back in (not good) From: "firmdog@gmail.com" To: Vikash Badal Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-questions@freebsd.org" 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: Sat, 27 Sep 2014 13:14:20 -0000 > ssh -t user@box.org /bin/sh works for me Just tested this on my laptop. That command does NOT work. It does work if the default shell port package is still installed. Try this: You must make bash the default shell for root. Then run, say, "pkg_delete bash-4.2.42" Log out. You will not be able to ssh or log back in with that command. I am on 8.4. I can't even log onto the local console. Yes, I kept a couple sessions open so I didn't lock myself out of the laptop. :-) On Sat, Sep 27, 2014 at 1:03 AM, Vikash Badal wrote: > On 27/09/2014 00:20, Valeri Galtsev wrote: >> >> 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 >> > > ssh -t user@box.org /bin/sh works for me > > >> 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 >> ++++++++++++++++++++++++++++++++++++++++ >> _______________________________________________ >> 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" >> > _______________________________________________ > 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"