Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Jul 2004 18:47:53 +0300
From:      Peter Pentchev <roam@ringlet.net>
To:        Brandon Grace <brandon.grace@ntscom.com>
Cc:        freebsd-security@freebsd.org
Subject:   Re: Root users shell == no existant shell /bin/bash
Message-ID:  <20040708154753.GA799@straylight.m.ringlet.net>
In-Reply-To: <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAQalskDVfo0WQ/a0WxfyYA8KAAAAQAAAAHZLwubL1IEW8iaIucc4elAEAAAAA@ntscom.com>
References:  <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAQalskDVfo0WQ/a0WxfyYA8KAAAAQAAAAHZLwubL1IEW8iaIucc4elAEAAAAA@ntscom.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help

--cWoXeonUoKmBZSoM
Content-Type: text/plain; charset=windows-1251
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Jul 08, 2004 at 10:29:58AM -0500, Brandon Grace wrote:
> I made a mistake setting my shell and have set the root users shell to
> /bin/bash instead of /bin/sh. I am curiuos if anyone knows how to fix thi=
s.
> The machines is FreeBSD 4.8-RELEASE-p4 and does not have sudo only su.

Reboot the machine in single-user mode - press Space or anything but
Enter at the spinning loader prompt, then type 'boot -s'.  After that,
mount the rest of the filesystems (if necessary) by 'mount -a', run
'vipw' (or 'chsh -s /bin/sh root' directly) and fix your mistake.

I think this was documented somewhere in the FAQ or the Handbook, but
right now I can't find it.

G'luck,
Peter

--=20
Peter Pentchev	roam@ringlet.net    roam@sbnd.net    roam@FreeBSD.org
PGP key:	http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint	FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
If wishes were fishes, the antecedent of this conditional would be true.

--cWoXeonUoKmBZSoM
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFA7Wyp7Ri2jRYZRVMRApZ5AJwMU/4irLqqLzJRbGYdVJG3p9+EEQCgj4hQ
F0k9w6ONNy7NW8a5CGYAFI8=
=ux5l
-----END PGP SIGNATURE-----

--cWoXeonUoKmBZSoM--



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20040708154753.GA799>