From owner-freebsd-questions@FreeBSD.ORG Thu Jul 8 23:56:22 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 CF74A16A4CE for ; Thu, 8 Jul 2004 23:56:22 +0000 (GMT) Received: from beastie.flncs.com (ns1.flncs.com [204.0.142.254]) by mx1.FreeBSD.org (Postfix) with SMTP id E121143D1D for ; Thu, 8 Jul 2004 23:56:21 +0000 (GMT) (envelope-from moti@flncs.com) Received: (qmail 97287 invoked by uid 1003); 8 Jul 2004 22:56:49 -0000 Received: from moti@flncs.com by beastie.flncs.com by uid 89 with qmail-scanner-1.22 Clear:RC:0(68.157.93.122):SA:0(0.0/4.0):. Processed in 0.218716 secs); 08 Jul 2004 22:56:49 -0000 X-Qmail-Scanner-Mail-From: moti@flncs.com via beastie.flncs.com X-Qmail-Scanner: 1.22 (Clear:RC:0(68.157.93.122):SA:0(0.0/4.0):. Processed in 0.218716 secs) Received: from adsl-068-157-093-122.sip.bct.bellsouth.net (HELO ?192.168.1.20?) (moti@flncs.com@68.157.93.122) by beastie.flncs.com with SMTP; 8 Jul 2004 22:56:49 -0000 Message-ID: <40EDDF0F.2020801@flncs.com> Date: Thu, 08 Jul 2004 19:55:59 -0400 From: Moti Levy User-Agent: Mozilla Thunderbird 0.7.1 (Windows/20040626) X-Accept-Language: en-us, en MIME-Version: 1.0 References: <20040708214355.GD9749@grimoire.chen.org.nz> In-Reply-To: <20040708214355.GD9749@grimoire.chen.org.nz> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on beastie.flncs.com X-Spam-Level: X-Spam-Status: No, hits=0.0 required=4.0 tests=none autolearn=no version=2.63 cc: Mike J 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 23:56:22 -0000 Jonathan Chen wrote: >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. > > if u have a user that is a memeber of the wheel group you can try and copy bash to /bin