From owner-freebsd-questions@FreeBSD.ORG Tue Aug 8 20:39:16 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7569616A4DA for ; Tue, 8 Aug 2006 20:39:16 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout7.cac.washington.edu (mxout7.cac.washington.edu [140.142.32.178]) by mx1.FreeBSD.org (Postfix) with ESMTP id 918BF43D6D for ; Tue, 8 Aug 2006 20:39:15 +0000 (GMT) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.139]) by mxout7.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW06.03) with ESMTP id k78KdFg1007417 for ; Tue, 8 Aug 2006 13:39:15 -0700 X-Auth-Received: from [192.168.0.50] (dsl254-013-145.sea1.dsl.speakeasy.net [216.254.13.145]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW06.03) with ESMTP id k78KdEsg017483 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Tue, 8 Aug 2006 13:39:14 -0700 Message-ID: <44D8F673.9070405@u.washington.edu> Date: Tue, 08 Aug 2006 13:39:15 -0700 From: Garrett Cooper User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20060808151743.T11625@bravo.pjkh.com> In-Reply-To: <20060808151743.T11625@bravo.pjkh.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.2.0.264296, Antispam-Engine: 2.4.0.264935, Antispam-Data: 2006.8.8.131932 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__C230066_P1_2 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Subject: Re: Changing root's shell X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Aug 2006 20:39:16 -0000 Philip Hallstrom wrote: >> so it seems changed root login's shell to /usr/bin/bash which doesn't >> exist. now I can't login to root at all. Oh yes, sudo isn't >> installed. How would you grand masters of FreeBSD fix my embarrasing >> mistake. > > Boot into single user mode, then vipw the password file and change it > back. Just as a note of warning, if you have any issues with your ports or libraries, you have a high probability of having issues with bash in the future as a shell. For example, I used to set my root shell to bash, before I had an issue with some missing libraries after an upgrade--which caused a great deal of grief, in particular when I went into safe mode as it couldn't load the shell properly. From then on I have used csh as the default shell, and then switch to bash when needed. -Garrett