From owner-freebsd-questions@FreeBSD.ORG Thu Sep 27 01:15:42 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F0CCA106568F for ; Thu, 27 Sep 2012 01:15:41 +0000 (UTC) (envelope-from Devin.Teske@fisglobal.com) Received: from mx1.fisglobal.com (mx1.fisglobal.com [199.200.24.190]) by mx1.freebsd.org (Postfix) with ESMTP id B7A678FC08 for ; Thu, 27 Sep 2012 01:15:40 +0000 (UTC) Received: from smtp.fisglobal.com ([10.132.206.17]) by ltcfislmsgpa03.fnfis.com (8.14.4/8.14.4) with ESMTP id q8R1FZba022852 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Wed, 26 Sep 2012 20:15:36 -0500 Received: from [10.0.0.100] (10.14.152.61) by smtp.fisglobal.com (10.132.206.17) with Microsoft SMTP Server (TLS) id 14.2.309.2; Wed, 26 Sep 2012 20:15:35 -0500 MIME-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset="iso-8859-1" From: Devin Teske In-Reply-To: <5063A68A.8090107@dreamchaser.org> Date: Wed, 26 Sep 2012 18:15:33 -0700 Content-Transfer-Encoding: quoted-printable Message-ID: References: <5063A68A.8090107@dreamchaser.org> To: X-Mailer: Apple Mail (2.1278) X-Originating-IP: [10.14.152.61] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.7.7855, 1.0.431, 0.0.0000 definitions=2012-09-26_04:2012-09-26, 2012-09-26, 1970-01-01 signatures=0 Cc: FreeBSD Mailing List Subject: Re: bad root shell in /etc/passwd X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Devin Teske List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Sep 2012 01:15:42 -0000 On Sep 26, 2012, at 6:06 PM, Gary Aitken wrote: > I mistakenly changed the root shell to something which doesn't exist. > Was trying to make it bash and used /bin/bash instead of /usr/local/bin/b= ash. > As a consequence, all login attempts fail because the shell can't be foun= d. >=20 > Unfortunatley, I shut down the session in which I modified /etc/passwd and > I don't have a root shell running anywhere, so I can't fix it. >=20 > I'm concerned that booting single user will have the same problem. > Or will it fall back to /bin/sh? >=20 > guidance? Single-user mode will prompt you. The default is /bin/sh but you can change= it. You should be able to solve the problem by entering single-user mode. --=20 Devin _____________ The information contained in this message is proprietary and/or confidentia= l. If you are not the intended recipient, please: (i) delete the message an= d all copies; (ii) do not disclose, distribute or use the message in any ma= nner; and (iii) notify the sender immediately. In addition, please be aware= that any message addressed to our domain is subject to archiving and revie= w by persons other than the intended recipient. Thank you.