Root users shell == no existant shell /bin/bash

Peter Pentchev roam at ringlet.net
Thu Jul 8 08:48:05 PDT 2004


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

-- 
Peter Pentchev	roam at ringlet.net    roam at sbnd.net    roam at 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-security/attachments/20040708/2e579e75/attachment.bin


More information about the freebsd-security mailing list