Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 May 2000 09:59:55 +1200
From:      Jonathan Chen <Jonathan.Chen@itouch.co.nz>
To:        Matthew Smart <mcsmart@eecs.umich.edu>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: forgotten root passwd
Message-ID:  <20000504095955.D13557@jonc.itouch.co.nz>
In-Reply-To: <NDBBKIOJPKBINCPCMCMDEEFNCGAA.mcsmart@eecs.umich.edu>; from mcsmart@eecs.umich.edu on Tue, May 02, 2000 at 05:46:10PM -0400
References:  <NDBBKIOJPKBINCPCMCMDEEFNCGAA.mcsmart@eecs.umich.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, May 02, 2000 at 05:46:10PM -0400, Matthew Smart wrote:
> I have a problem similar to a forgotten root
> password, and I've been trying to figure out
> how to put my FreeBSD box into single-user mode.
> 
> I accidentally created a .zshrc for root with
> the single line "alias g `gvim`" so when I try
> to log in as root w/o X running I get:
>   cannot open displayVim: Warning: Output is not to a terminal
> and I can't kill the process.

When the machine reboots, and it says something like [Booting in 10
seconds, ...], hit a space-bar, and type in "boot -s".

Once you're in:
	mount -a
	rm /root/.zshrc
-- 
Jonathan Chen <jonathan.chen@itouch.co.nz>


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?20000504095955.D13557>