From owner-freebsd-questions@FreeBSD.ORG Fri Oct 5 20:51:57 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 91BC216A419 for ; Fri, 5 Oct 2007 20:51:57 +0000 (UTC) (envelope-from quakenet1@optusnet.com.au) Received: from mail04.syd.optusnet.com.au (mail04.syd.optusnet.com.au [211.29.132.185]) by mx1.freebsd.org (Postfix) with ESMTP id 130B513C459 for ; Fri, 5 Oct 2007 20:51:56 +0000 (UTC) (envelope-from quakenet1@optusnet.com.au) Received: from [10.0.0.3] (c220-239-13-242.belrs4.nsw.optusnet.com.au [220.239.13.242]) by mail04.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id l95Kps4i028733; Sat, 6 Oct 2007 06:51:54 +1000 In-Reply-To: <1191610761.28483.184.camel@soundwave.pitbpa0.priv.collaborativefusion.com> References: <2F42244C-6F3F-48B3-AC05-FF068A791324@optusnet.com.au> <1191610761.28483.184.camel@soundwave.pitbpa0.priv.collaborativefusion.com> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <2E53DE70-20DE-4F97-8645-943F25AA3AF5@optusnet.com.au> Content-Transfer-Encoding: 7bit From: Jerahmy Pocott Date: Sat, 6 Oct 2007 06:51:53 +1000 To: FreeBSD Questions X-Mailer: Apple Mail (2.752.2) Cc: "Brian A. Seklecki" Subject: Re: BASH as root shell (static linking) 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, 05 Oct 2007 20:51:57 -0000 On 06/10/2007, at 4:59 AM, Brian A. Seklecki wrote: > > > On Sat, 2007-10-06 at 04:54 +1000, Jerahmy Pocott wrote: >> Hello, >> >> I'm wanting to use BASH as my root shell, so I compiled a statically >> linked >> version then tried to log in with only / mounted. But I was locked >> out because >> elf.ld.so could not be found.. > > JP: > > Did: > > $ ldd /bin/bash > > Return anything? It should not. It's saying: libintl.so.6 => /usr/local/lib/libintl.so.6 (0x2819d000) libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x281a6000) Why is it linking these dynamically? It's not linking ncurses or libc dynamically.. Thanks!