BASH as root shell (static linking)
Jerahmy Pocott
quakenet1 at optusnet.com.au
Fri Oct 5 13:51:57 PDT 2007
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!
More information about the freebsd-questions
mailing list