From owner-freebsd-questions@FreeBSD.ORG Thu Jul 8 21:43:57 2004 Return-Path: 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 3F92316A4CE for ; Thu, 8 Jul 2004 21:43:57 +0000 (GMT) Received: from chen.org.nz (chen.org.nz [210.54.19.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0586F43D39 for ; Thu, 8 Jul 2004 21:43:57 +0000 (GMT) (envelope-from jonc@chen.org.nz) Received: by chen.org.nz (Postfix, from userid 1000) id 6A0B01361E; Fri, 9 Jul 2004 09:43:55 +1200 (NZST) Date: Fri, 9 Jul 2004 09:43:55 +1200 From: Jonathan Chen To: Mike J Message-ID: <20040708214355.GD9749@grimoire.chen.org.nz> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i cc: freebsd-questions@freebsd.org Subject: Re: your mail X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jul 2004 21:43:57 -0000 On Thu, Jul 08, 2004 at 08:54:45AM -0500, Mike J wrote: > I have a question. One of the new guys went into one of our BSD servers and > changed the root environment from the default to /bin/bash and bash isn't > installed on this box, therefore we are having trouble su'ing in and even > logging in at the console. Anyone have any ideas on how to get in. Boot into single user (just hit the reset button when all is quite and hit the space bar during the appropriate boot-prompt), and it will allow you to specify the shell to use in single user mode (/bin/sh by default). # fsck -y # mount -a # vipw should do the trick. -- Jonathan Chen ---------------------------------------------------------------------- "Opportunity does not knock, it presents itself when you beat down the door" - W.E. Channing