From owner-freebsd-questions Thu Dec 19 02:24:46 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id CAA14632 for questions-outgoing; Thu, 19 Dec 1996 02:24:46 -0800 (PST) Received: from agora.rdrop.com (root@agora.rdrop.com [199.2.210.241]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id CAA14626 for ; Thu, 19 Dec 1996 02:24:43 -0800 (PST) Received: from ghost.mep.ruhr-uni-bochum.de by agora.rdrop.com with smtp (Smail3.1.29.1 #17) id m0vafe5-0008tJC; Thu, 19 Dec 96 02:24 PST Received: (from roberte@localhost) by ghost.mep.ruhr-uni-bochum.de (8.7.5/8.7.3) id LAA17275; Thu, 19 Dec 1996 11:16:13 +0100 (MET) From: Robert Eckardt Message-Id: <199612191016.LAA17275@ghost.mep.ruhr-uni-bochum.de> Subject: Re: root problem In-Reply-To: from Steve Reid at "18. Dec. 96 17:05:51" To: steve@edmweb.com (Steve Reid) Date: Thu, 19 Dec 1996 11:16:12 +0100 (MET) Cc: bsoben@gauss.elee.calpoly.edu, questions@freebsd.org X-Mailer: ELM [version 2.4ME+ PL25 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > 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? You can boot to single user mode (`-s' at `boot:' prompt) and use /bin/sh (the default) when prompted for a shell. Then you have to re-mount / with `mount -u /' to be able to write to /. Use either vipw to change your shell back to /bin/sh, /bin/csh, ... or (only if it's in the root-FS) `ln -s /usr/local/bin/tcsh /bin/tcsh'. Robert > The tcsh package is installed as /usr/local/bin/tcsh, _not_ /bin/tcsh. > > I use bash, and copied /usr/local/bin/bash to /bin/bash so that I can > access it even on those rare occasions when /usr isn't mounted. -- Robert Eckardt \\ FreeBSD -- solutions for a large universe.(tm) RobertE@MEP.Ruhr-Uni-Bochum.de \\ What do you want to boot tomorrow ?(tm) http://WWW.MEP.Ruhr-Uni-Bochum.de/~roberte For PGP-key finger roberte@gluon.MEP.Ruhr-Uni-Bochum.de