From owner-freebsd-questions@FreeBSD.ORG Sat Oct 6 11:09:38 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A9E2B16A417 for ; Sat, 6 Oct 2007 11:09:38 +0000 (UTC) (envelope-from bv@bilver.wjv.com) Received: from wjv.com (fl-65-40-24-38.sta.embarqhsd.net [65.40.24.38]) by mx1.freebsd.org (Postfix) with ESMTP id 46CC913C468 for ; Sat, 6 Oct 2007 11:09:37 +0000 (UTC) (envelope-from bv@bilver.wjv.com) Received: from bilver.wjv.com (localhost.wjv.com [127.0.0.1]) by wjv.com (8.14.1/8.13.1) with ESMTP id l96B9Zn3080229 for ; Sat, 6 Oct 2007 07:09:35 -0400 (EDT) (envelope-from bv@bilver.wjv.com) Received: (from bv@localhost) by bilver.wjv.com (8.14.1/8.13.1/Submit) id l96B9U7Z080228 for freebsd-questions@freebsd.org; Sat, 6 Oct 2007 07:09:30 -0400 (EDT) (envelope-from bv) Date: Sat, 6 Oct 2007 07:09:30 -0400 From: Bill Vermillion To: freebsd-questions@freebsd.org Message-ID: <20071006110930.GA80058@wjv.com> References: <20071006055230.A491016A513@hub.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071006055230.A491016A513@hub.freebsd.org> User-Agent: Mutt/1.4.2.2i Organization: W.J.Vermillion / Orlando - Winter Park ReplyTo: bv@wjv.com Subject: Re: BASH as root shell (static linking) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bv@wjv.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Oct 2007 11:09:38 -0000 On Sat, Oct 06, 2007 at 05:52 freebsd-questions-request@freebsd.org said 'Who you talkin' to? You talkin' to freebsd-questions-request@freebsd.org? I didn't do nuttin'. I said: > Date: Fri, 5 Oct 2007 20:09:46 -0400 > From: Jerry McAllister > Subject: Re: BASH as root shell (static linking) > On Sat, Oct 06, 2007 at 12:32:22AM +0100, RW wrote: > > On Fri, 5 Oct 2007 16:29:36 -0700 (PDT) > > Philip Hallstrom wrote: > > > > On 06/10/2007, at 5:45 AM, RW wrote: > > > >> On Sat, 6 Oct 2007 04:54:26 +1000 > > > >> Jerahmy Pocott wrote: > > > >>> Hello, > > > >>> I'm wanting to use BASH as my root shell, so I compiled a > > > >>> statically linked ... [deletia - wjv] > Or, maybe the OP managed to get it put in the /etc/passwd entry. > Anyway, I prefer tcsh, but if the OP just has to have it bash, > it is easy to do. > All the OP has to do is install bash from /usr/ports/shells/bash > and then edit /etc/passwd to change the last field for toor > - after the last colon - to point to where it installs bash > (/usr/local/bin/bash maybe) and then it should all be fine. No really - because in the original post the OP says he wanted to use this when only / was mounted. That means he should put his bash in /bin and make an entry to the /etc/shells. I do with ksh - my prefered shell for the last umpteen years. If you do have a shell you want to use all the time it had better be in /bin cause you will be lost if you get into single user mode from something like a crash and need to run utilities. Bill -- Bill Vermillion - bv @ wjv . com