Re: ash vs. bash
According to Marco d'Itri:
>
> >(*) with /bin/sh -> bash, there's no way to obtain a shell if you lose /lib.
> You will need at least /bin/login too.
not in single user mode where you only need /sbin/sulogin.
$ file /sbin/sulogin
/sbin/sulogin: ELF 32-bit LSB executable, Intel 80386, version 1, dynamically linked (uses shared libs), stripped
$ ldd /sbin/sulogin
libcrypt.so.1 => /lib/libcrypt.so.1 (0x40006000)
libc.so.6 => /lib/libc.so.6 (0x40033000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x2aaaa000)
ouch ! (oh yes, the latest sysvinit upgrade). Next time I will rename mine
sulogin-static :)
> But you could just do that:
>
> root:x:0:0:Root of all evils:/home/root:/bin/bash
> toor:x:0:0:Emergency BOFH:/home/root:/bin/sash
I'm using :
root:x:0:0:Root:/home/root:/sbin/sh
my /sbin/sh is a static shell (extracted from FreeBSD). I don't like sash
because a) it's a melange of sh and csh and b) it has only a 1 line prompt.
--
Fabien Tassin -+- fta@oleane.net
Reply to: