Re: BASH as root shell (static linking)
- From: Jerahmy Pocott <quakenet1@xxxxxxxxxxxxxxx>
- Date: Sun, 7 Oct 2007 21:02:50 +1000
On 07/10/2007, at 12:56 AM, andrew clarke wrote:
On Sat, Oct 06, 2007 at 04:54:26AM +1000, Jerahmy Pocott wrote:
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..
I though elf was the native binary format these days? But it needs a
library to run them? Is it possible to statically link against elf? Or do
standalone binary have to be in aout format? I'm a bit confused as to why it
requires this dynamic library..
I'm not sure if this helps at all, but you can build a static version of
bash from the Ports tree:
cd /usr/ports/shells/bash
make WITH_STATIC_BASH=1
You'll need to cp bash to /bin.
Thanks, that was the information I was looking for! I didn't know about that
option to the port..
The problem seemed to be with the dependancies, libintl is dynamically linked
to libiconv and some how that was causing it to build with a dynamic link..
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"
- References:
- BASH as root shell (static linking)
- From: Jerahmy Pocott
- Re: BASH as root shell (static linking)
- From: andrew clarke
- BASH as root shell (static linking)
- Prev by Date: Re: C++ Compiler On FreeBSD
- Next by Date: Re: Server Reboot
- Previous by thread: Re: BASH as root shell (static linking)
- Next by thread: Re: BASH as root shell (static linking)
- Index(es):
Relevant Pages
|