From owner-freebsd-questions Tue May 2 15: 5:57 2000 Delivered-To: freebsd-questions@freebsd.org Received: from itouch.co.nz (fw2.wilsonandhorton.co.nz [203.99.66.4]) by hub.freebsd.org (Postfix) with ESMTP id C296537B8B2 for ; Tue, 2 May 2000 15:05:46 -0700 (PDT) (envelope-from jonc@itouch.co.nz) Received: (from jonc@localhost) by itouch.co.nz (8.9.3/8.9.3) id JAA14032; Thu, 4 May 2000 09:59:55 +1200 (NZST) (envelope-from jonc) Date: Thu, 4 May 2000 09:59:55 +1200 From: Jonathan Chen To: Matthew Smart Cc: freebsd-questions@freebsd.org Subject: Re: forgotten root passwd Message-ID: <20000504095955.D13557@jonc.itouch.co.nz> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: ; from mcsmart@eecs.umich.edu on Tue, May 02, 2000 at 05:46:10PM -0400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message