From owner-freebsd-questions@FreeBSD.ORG Fri Nov 9 13:07:00 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 E884416A41B for ; Fri, 9 Nov 2007 13:07:00 +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 85BAB13C48E for ; Fri, 9 Nov 2007 13:07:00 +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 lA9D6d0f053180 for ; Fri, 9 Nov 2007 08:06:39 -0500 (EST) (envelope-from bv@bilver.wjv.com) Received: (from bv@localhost) by bilver.wjv.com (8.14.1/8.13.1/Submit) id lA9D6Y2N053179 for freebsd-questions@freebsd.org; Fri, 9 Nov 2007 08:06:34 -0500 (EST) (envelope-from bv) Date: Fri, 9 Nov 2007 08:06:34 -0500 From: Bill Vermillion To: freebsd-questions@freebsd.org Message-ID: <20071109130634.GA52980@wjv.com> References: <20071109120021.9CB3216A4D1@hub.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071109120021.9CB3216A4D1@hub.freebsd.org> User-Agent: Mutt/1.4.2.2i Organization: W.J.Vermillion / Orlando - Winter Park ReplyTo: bv@wjv.com Subject: Re: Dangers of using a non-base shell 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: Fri, 09 Nov 2007 13:07:01 -0000 "Ang utong ko ay sasabog sa sarap!" exclaimed freebsd-questions-request@freebsd.org while reading this message on Fri, Nov 09, 2007 at 12:00 and then responded with: > Date: Thu, 8 Nov 2007 23:42:08 -0500 (EST) > From: Darren Henderson > Subject: Re: Dangers of using a non-base shell > On Tue, 30 Oct 2007, Roland Smith wrote: > > But if you're starting in single user mode, only / will be > > mounted. So if you have /usr or /usr/local on a separate > > partition, you'd be screwed. > > That is why root should only use a shell that's in the / partition. And since you control the machine that should be easy to do. Put the programs YOU need in a directory on / - even if those are elsewhere in the standard distribution. Yoy may find that you want something that is not there normally. Probably a rare occurance but you won't break anything - particularly if you 'cp' it and not move 'mv' it. > You'll be prompted for a shell if your default isn't available. > I've used bash for the root shell for years. Doesn't mean that > you will never have a problem but this paticular situation > just means you'll have to hit enter to accept /bin/sh or enter > another shell when booting into single user. > -Darren I've been using ksh [not the pd verison but the REAL Korn Shell] for years - even on all the commercial Unix systems I used to maintain. But on FreeBSD I always copy it to /bin/ksh [dropping the 93 extension in the default install] and being of the belt & suspendors mentality I ALWAYS compile it statically - and just checking /bin I find only pgrep and pkill NOT statically linked. Old habits die hard but I surely won't be bitten by a corrupt library. Bill -- Bill Vermillion - bv @ wjv . com