From owner-freebsd-questions@FreeBSD.ORG Fri Aug 14 12:19:21 2009 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 7BB6B106568C for ; Fri, 14 Aug 2009 12:19:21 +0000 (UTC) (envelope-from mail25@bzerk.org) Received: from ei.bzerk.org (tunnel490.ipv6.xs4all.nl [IPv6:2001:888:10:1ea::2]) by mx1.freebsd.org (Postfix) with ESMTP id ED4408FC51 for ; Fri, 14 Aug 2009 12:19:20 +0000 (UTC) Received: from ei.bzerk.org (BOFH@localhost [127.0.0.1]) by ei.bzerk.org (8.14.2/8.14.2) with ESMTP id n7ECJFNd010012; Fri, 14 Aug 2009 14:19:15 +0200 (CEST) (envelope-from mail25@bzerk.org) Received: (from bulk@localhost) by ei.bzerk.org (8.14.2/8.14.2/Submit) id n7ECJF2L010011; Fri, 14 Aug 2009 14:19:15 +0200 (CEST) (envelope-from mail25@bzerk.org) Date: Fri, 14 Aug 2009 14:19:15 +0200 From: Ruben de Groot To: Alex R Message-ID: <20090814121915.GB9851@ei.bzerk.org> Mail-Followup-To: Ruben de Groot , Alex R , freebsd-questions@freebsd.org References: <4A851E30.2010008@mailinglist.ahhyes.net> <20090814111508.GA9600@ei.bzerk.org> <4A854F5C.3010003@mailinglist.ahhyes.net> <20090814120416.GA9851@ei.bzerk.org> <4A8553D0.8080801@mailinglist.ahhyes.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4A8553D0.8080801@mailinglist.ahhyes.net> User-Agent: Mutt/1.4.2.3i X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on ei.bzerk.org X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0.1 (ei.bzerk.org [127.0.0.1]); Fri, 14 Aug 2009 14:19:20 +0200 (CEST) Cc: freebsd-questions@freebsd.org Subject: Re: Userland PPP fails to load via rc.conf (7.2/amd64) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Aug 2009 12:19:21 -0000 On Fri, Aug 14, 2009 at 10:08:48PM +1000, Alex R typed: > Actually I did change the root shell to bash. U think that might cause it? Definately. before ldconfig is run, only the system libraries in /lib and /usr/lib are known. Doing a "su -m root" at that time, as /etc/rc.d/ppp is doing, will result in the error message you got, as bash wants to load libintl.so.8, which lives in /usr/local/lib. Ruben > Ruben de Groot wrote: > >On Fri, Aug 14, 2009 at 09:49:48PM +1000, Alex R typed: > > > >>Hi Ruben, > >> > >>Output is as follows: > >> > >>/usr/bin/su: > >> libutil.so.7 => /lib/libutil.so.7 (0x800635000) > >> libpam.so.4 => /usr/lib/libpam.so.4 (0x800744000) > >> libbsm.so.2 => /usr/lib/libbsm.so.2 (0x80084c000) > >> libc.so.7 => /lib/libc.so.7 (0x800962000) > >> > > > >That's normal. Shall I take a guess? > > > >You changed root's shell to bash! > >bash uses libintl, and will be invoked by the "su -m $ppp_user" in > >/etc/rc.d/ppp > > > >Yet another good reason not to change root's default shell :D > > > >cheers, > >Ruben > > > > > >>Ruben de Groot wrote: > >> > >>>On Fri, Aug 14, 2009 at 06:20:00PM +1000, Alex R typed: > >>> > >>> > >>>>Hi Guys, > >>>> > >>>>I ran into the same problem as this person did (see the link below): > >>>> > >>>>http://www.mail-archive.com/freebsd-net@freebsd.org/msg24337.html > >>>> > >>>>ppp starts fine if invoked from shell prompt, however the problem above > >>>>occurs for me when I attempt to start it automatically at boot via > >>>>/etc/rc.conf > >>>> > >>>>Funnily enough, the solution presented in that article seems to fix the > >>>>issue.. But why? This problem is very easy to reproduce, how could it > >>>>have been overlooked? I just happened to find the article in the link > >>>>above, out of desperation, it's not good that I had to Google for a > >>>>solution. > >>>> > >>>> > >>>What's the output of the command > >>> > >>>ldd `which su` > >>> > >>>? > >>> > >>> > >>> > >>>>Is the solution given "safe"? Should I open a PR? > >>>> > >>>>Alex > >>>> > >>>>_______________________________________________ > >>>>freebsd-questions@freebsd.org mailing list > >>>>http://lists.freebsd.org/mailman/listinfo/freebsd-questions > >>>>To unsubscribe, send any mail to > >>>>"freebsd-questions-unsubscribe@freebsd.org" > >>>> > >>>> > >>> > >>> > >>_______________________________________________ > >>freebsd-questions@freebsd.org mailing list > >>http://lists.freebsd.org/mailman/listinfo/freebsd-questions > >>To unsubscribe, send any mail to > >>"freebsd-questions-unsubscribe@freebsd.org" > >> > > > > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"