Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Dec 2000 12:28:33 +1300
From:      Jonathan Chen <jonathan.chen@itouch.co.nz>
To:        Andrey Mavrichev <mavrichev@yahoo.com>
Cc:        questions@FreeBSD.ORG
Subject:   Re: shell
Message-ID:  <20001211122833.B15163@jonc.itouch>
In-Reply-To: <3A340EE7.1FD53D3D@yahoo.com>; from mavrichev@yahoo.com on Sun, Dec 10, 2000 at 06:16:55PM -0500
References:  <3A340EE7.1FD53D3D@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <jonathan.chen@itouch.co.nz>
----------------------------------------------------------------------
                                         "Nyuck, nyuck, nyuck" - Curly


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?20001211122833.B15163>