Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Oct 2000 20:35:42 -0400 (EDT)
From:      David Raistrick <keen@damoe.wireless-isp.net>
To:        Loren Koss <loren@pciway.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: I deleted my shell by mistake!!
Message-ID:  <Pine.BSF.4.21.0010032025390.21594-100000@damoe.wireless-isp.net>
In-Reply-To: <Pine.BSF.4.21.0010031716020.35678-100000@unix.pciway.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 3 Oct 2000, Loren Koss wrote:

> mode?  Am I totally F*cked???

No.  If you cant su, then you need to get (or get someone too..) the
console, and reboot into single user.

hit enter when it asks for what shell to use, to use the default of
/bin/sh

if you shut down cleanly (a three finger salute will do this, even without
root access, unless you disabled it..), a mount -a should get everything
mounted and usable. (mount -fw / will get / writable if mount -a
doesnt...its been a while..)

vipw   should let you go in and set your root shell to /bin/sh (or
/bin/csh..whathaveyou).

get back to multiuser and reinstall that port, and you should be fine.

later...david

--
David Raistrick		Digital Wireless Communications
davidr@dwcinet.com





To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0010032025390.21594-100000>