Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Sep 2012 18:15:33 -0700
From:      Devin Teske <devin.teske@fisglobal.com>
To:        <freebsd@dreamchaser.org>
Cc:        FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: bad root shell in /etc/passwd
Message-ID:  <D3FB5200-7688-4157-A3A9-C10095F3EEBB@fisglobal.com>
In-Reply-To: <5063A68A.8090107@dreamchaser.org>
References:  <5063A68A.8090107@dreamchaser.org>

next in thread | previous in thread | raw e-mail | index | archive | help

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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D3FB5200-7688-4157-A3A9-C10095F3EEBB>