Re: severe ld.so bug !!

Paul Wouters (paul@xtdnet.nl)
Wed, 18 Dec 1996 09:16:58 +0100 (MET)


On Wed, 18 Dec 1996, Harald Koenig wrote:

> > i recall working wonders with 'ln' and 'mv' on a sunos box with corrupted
> > libraries. looking at a sunos 4.1.3 box i see that init=/bin/sh would
> > have worked (wow! cuz /bin/sh is staticly linked as it should be). and a
> > handful of useful things in /bin and /etc are static (such as mount,
> > ifconfig, update, fsck, hostname, ldd, tar, sh, mv, ln). you can do lots
> > with these.

Install sash, the safe shell. It features all your favourite commands
like mv,ln,tar,ls,cd,cp etc. It's also one staticly linked binary.

You could even hack the kernel so it panics to /bin/sash instead of
/bin/sh ;)

Paul