--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--