From owner-freebsd-questions Sun Dec 10 15:28:38 2000 From owner-freebsd-questions@FreeBSD.ORG Sun Dec 10 15:28:36 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from itouch.co.nz (itouch.co.nz [203.99.66.188]) by hub.freebsd.org (Postfix) with ESMTP id F1CE437B400 for ; Sun, 10 Dec 2000 15:28:34 -0800 (PST) Received: from jonc.itouch (jonc.itouch [192.168.2.21]) by itouch.co.nz (8.11.1/8.11.1) with ESMTP id eBANSX360394; Mon, 11 Dec 2000 12:28:33 +1300 (NZDT) (envelope-from jonc@itouch.co.nz) Received: (from jonc@localhost) by jonc.itouch (8.11.1/8.11.1) id eBANSXD15250; Mon, 11 Dec 2000 12:28:33 +1300 (NZDT) (envelope-from jonc) Date: Mon, 11 Dec 2000 12:28:33 +1300 From: Jonathan Chen To: Andrey Mavrichev Cc: questions@FreeBSD.ORG Subject: Re: shell Message-ID: <20001211122833.B15163@jonc.itouch> References: <3A340EE7.1FD53D3D@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3A340EE7.1FD53D3D@yahoo.com>; from mavrichev@yahoo.com on Sun, Dec 10, 2000 at 06:16:55PM -0500 Sender: jonc@itouch.co.nz Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Dec 10, 2000 at 06:16:55PM -0500, Andrey Mavrichev wrote: > Hi! > > I have installed a FreeBSD on my computer two days ago, and I am new at > this. While attempting to change the shell (from csh to tcsh) that is > loaded for root, I made a mistake. I used the "vipw" command, and > accidently typed "kcsh" instead of "tcsh" (a stupid mistake, I know). I > realized this only after I saved and rebooted the system - and it was > too late. I do not have any other users through which I can get into the > system, and logging as a root only gives an error message that it can't > find the "kcsh" shell. I tried the installation boot floppies to get > into the setup utility, but this didn't work. > > Can you suggest any methods other than re-installation of the system > that can be used to start the proper shell and correct the mistake? Are > there any login commands or options that can be used to start a shell, > or is there any way to get into the set-up utility? Boot single user when the machine is coming up: 1. Wait till the 10-second countdown, hit the space-bar and type in "boot -s" 2. The machine will then prompt for a shell to use, accept the default /bin/sh. 3. mount -a 4. vipw Cheers. -- Jonathan Chen ---------------------------------------------------------------------- "Nyuck, nyuck, nyuck" - Curly To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message