From owner-freebsd-questions Wed Apr 25 16: 5:24 2001 Delivered-To: freebsd-questions@freebsd.org Received: from fear.net (fear.net [207.180.208.7]) by hub.freebsd.org (Postfix) with ESMTP id 8DCF137B423 for ; Wed, 25 Apr 2001 16:05:21 -0700 (PDT) (envelope-from matt@fear.net) Received: from fear.net (matt@fear.net [207.180.208.7]) by fear.net (8.8.8/8.8.8) with ESMTP id SAA22862; Wed, 25 Apr 2001 18:07:00 -0400 Date: Wed, 25 Apr 2001 18:06:58 -0400 (EDT) From: "Thomas (Matt) Barton" To: Malartre Cc: Subject: Re: Typo caused the root user to have no shell In-Reply-To: <3AE755FF.5893CD0B@videotron.ca> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 25 Apr 2001, Malartre wrote: > I did a directory typo who made the root user to have no shell. I > wanted to change from csh to bash... The login choke after I enter my > password. I have no user in the wheel group. > > What can I do to edit the file or log as root with sh? It is all about single user mode on this one. When FreeBSD pauses at start and lets you press any key to enter options (or something like that -- can't remember for sure because I never have to reboot my machines), all you need to do is type "boot -s" and it will put you in to single user mode. It will ask you for a shell to use before it gives you a prompt. In there you can fix your shell for the root user. Enjoy. -- Matt Barton matt@fear.net Indianapolis, IN http://www.mattbarton.ws/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message