From owner-freebsd-questions@FreeBSD.ORG Thu Aug 28 14:37:02 2003 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 0195016A4BF for ; Thu, 28 Aug 2003 14:37:02 -0700 (PDT) Received: from freshaire.wiz.com (freshaire.wiz.com [66.143.183.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id F042443FEC for ; Thu, 28 Aug 2003 14:37:00 -0700 (PDT) (envelope-from marc@wiz.com) Received: from freshaire.wiz.com (localhost [127.0.0.1]) by freshaire.wiz.com (8.12.9/8.12.6) with ESMTP id h7SLae6e008247 for ; Thu, 28 Aug 2003 16:37:00 -0500 (CDT) (envelope-from marc@freshaire.wiz.com) Received: (from marc@localhost) by freshaire.wiz.com (8.12.9/8.12.9/Submit) id h7SLaeR5008246 for freebsd-questions@freebsd.org; Thu, 28 Aug 2003 16:36:40 -0500 (CDT) Date: Thu, 28 Aug 2003 16:36:40 -0500 From: Marc Wiz To: FreeBSD Questions Message-ID: <20030828213640.GI6312@freshaire.wiz.com> References: <1671561231.20280829005225@mail.ru> <20030828213345.GD80772@christabel.starbreaker.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030828213345.GD80772@christabel.starbreaker.net> User-Agent: Mutt/1.4i Subject: Re: Necessary code or trash? 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, 28 Aug 2003 21:37:02 -0000 On Thu, Aug 28, 2003 at 05:33:45PM -0400, Matthew Graybosch wrote: > > As others explained these commands and others are statically linked so that > they do not depend on libraries that live in /usr. Since these are very > basic commands, it's a bad idea to have them depend on a library that might > not be available if only the / filesystem is mounted. > > Since / usually just contains /root, /bin, /sbin and a couple of others, > statically linked programs in /bin and /sbin are always available, even > in single user mode. Booting into single user only mounts /bin, which is why > some people on the list have advised sticking with /bin/sh when asked about > changing root's login shell. Sticking with /bin/sh is a good idea. What I have done is build a static version of bash and put it /bin I changed root's shell to /bin/bash and run just fine. Has anyone noticed what a pain it is to build bash statically and install it in /bin? Marc -- Marc Wiz marc@wiz.com Yes, that really is my last name.