From owner-freebsd-questions Wed Dec 18 16:39:15 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id QAA18638 for questions-outgoing; Wed, 18 Dec 1996 16:39:15 -0800 (PST) Received: from venus.net (venus.net [205.243.72.10]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id QAA18630 for ; Wed, 18 Dec 1996 16:39:13 -0800 (PST) Received: from lostfork (ve1-p2.venus.net [205.243.75.5]) by venus.net (8.7.1/8.7.3) with SMTP id TAA10550; Wed, 18 Dec 1996 19:43:17 -0500 (EST) Date: Wed, 18 Dec 1996 19:38:52 -0500 (EST) From: Andre LeClaire X-Sender: leclaire@lostfork Reply-To: Andre LeClaire To: Barry Soben cc: questions@FreeBSD.org Subject: Re: root problem In-Reply-To: <2.2.32.19961218215532.0067eb1c@fix.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk On Wed, 18 Dec 1996, Barry Soben wrote: > I changed the shell on my root account from csh to tcsh.. When I try to > login as root, I can't because it says it can't find /bin/tcsh. IS there > any way to fix this without reinstalling the system? > > Also, I thought, perhaps tcsh didn't get installed.. I used my boot floppy > to get into sysinstall but when I tried to reinstall tcsh, (selected package > and said extract it), the computer reboots itself! > I recently did almost the same thing myself (with bash), and luckily I had saved and printed a message on this list from Greg Lehey , which bailed me out. This is it in a nutshell: 1) Reboot 2) At the Boot: prompt enter -s 3) This puts you in single-user mode. Press enter to start sh 4) fsck -y /dev/rdw0a 5) mount -u / 6) mount /usr 7) mount /var (else you'll get error message from vi) 8) vipw (uses vi commands) 9) change root's shell to sh 10) :wq 11) exit Now you're back where you started, and can change your shell to whatever you want. Before you logout, check it by logging in as root in another virtual window. BTW, thanks Greg! Andre