From owner-freebsd-questions@FreeBSD.ORG Tue Dec 21 11:54:59 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 F3C1D16A4CE for ; Tue, 21 Dec 2004 11:54:58 +0000 (GMT) Received: from 9.hellooperator.net (cpc3-cdif2-3-0-cust202.cdif.cable.ntl.com [81.103.32.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F07343D1F for ; Tue, 21 Dec 2004 11:54:58 +0000 (GMT) (envelope-from rasputin@hellooperator.net) Received: from rasputin by 9.hellooperator.net with local (Exim 4.43) id 1CgibQ-0000cI-SC; Tue, 21 Dec 2004 11:54:56 +0000 Date: Tue, 21 Dec 2004 11:54:56 +0000 From: Dick Davies To: Erik Trulsson Message-ID: <20041221115456.GG12067@lb.tenfour> References: <20041221101415.GA12067@lb.tenfour> <20041221113424.GA16961@falcon.midgard.homeip.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041221113424.GA16961@falcon.midgard.homeip.net> User-Agent: Mutt/1.4.2.1i Sender: Dick Davies cc: FreeBSD Questions Subject: Re: bash- superuser X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Dick Davies List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Dec 2004 11:54:59 -0000 * Erik Trulsson [1234 11:34]: > On Tue, Dec 21, 2004 at 10:14:15AM +0000, Dick Davies wrote: > > I thought the issue was the ldconfig path not being set up at the point > > that pppd called su? > > > > pppd lives in /usr, after all :) > > Not quite. The issue was that the /etc/rc.d/ppp-user script calls su. > su starts a shell - in this case it tried to start bash since that was > root's shell. At that point in the process the system was not yet > configured to find the libraries bash needed. ppp as such was fairly > irrelevant - it was su that caused the problems. Sure, I mean that the filesystem *is* mounted at this point, so Greg not having a separate /usr won't help in this case. > > Assuming that's wrong, doesn't freebsd have a notion of 'critical filesystems' > > and and 'pre-networking filesystems' a la NetBSD? > > I used to have to set this on netbsd to get wicontrol from /usr before dhcp.... > > Probably, but /usr/local is probably not normally considered to be one. No, exactly, but my point is that if you were going to be using stuff from /usr/local, then you could set this in rc.conf and be sure: a) it was mounted b) ldconfig had at least looked at /usr/local/lib b) is tricky, on netbsd we generally do our linking at compile time so this kind of thing isn't an issue, so long as /usr/local/lib is available bash will work). -- 'When the door hits you in the ass on the way out, clean off the smudge your ass leaves, please' -- Alien loves Predator Rasputin :: Jack of All Trades - Master of Nuns