Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Apr 2005 20:18:17 +0200
From:      Toni Schmidbauer <toni@stderror.at>
To:        freebsd-questions@freebsd.org
Subject:   Re: cd-rom sysinstall fixit utility
Message-ID:  <20050418181817.GA85685@stderror.at>
In-Reply-To: <Pine.GSO.4.61.0504181304120.25843@shell1>
References:  <Pine.GSO.4.61.0504181304120.25843@shell1>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Apr 18, 2005 at 01:05:53PM -0400, Darrel wrote:
> Is there actually a way to change the shell of root while logged in with
> the fixit utility on the cd-rom?

boot from the fixit cd/floppy, mount your root partition (e.g.
/dev/ad0s1a), edit /etc/passwd and change the shell to something
valid (/bin/csh should always work).

a quick search on google for "freebsd fixit" found the following, 
which might help:

http://www.freebsd-corp-net-guide.com/technotes/fixit.html

in your case, after mounting /dev/ad0s1a on /mnt, 
"vi /mnt/etc/passwd" - save, reboot and you should be fine.

hth,
toni
-- 
Wer es einmal so weit gebracht hat, dass er nicht | toni at stderror dot at
mehr irrt, der hat auch zu arbeiten aufgehoert    | Toni Schmidbauer
-- Max Planck                                     |



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050418181817.GA85685>