About /bin/csh
Gabor Kovesdan
gabor at FreeBSD.org
Sat Jun 2 15:41:43 UTC 2007
Sereno Ternullo escribió:
> Hi folks,
> i noticed that the root's default shell, /bin/csh is not statically linked:
>
> [sereno at FreeBSD ~]$ ldd /bin/csh
> /bin/csh:
> libncurses.so.6 => /lib/libncurses.so.6 (0x280bd000)
> libcrypt.so.3 => /lib/libcrypt.so.3 (0x280fc000)
> libc.so.6 => /lib/libc.so.6 (0x28114000)
>
> What might happen if something goes wrong with ncurses, crypt and c libs ?
> Might I login into my system ?
>
Hello Sereno,
If such accidents happen, you can boot into single user mode, where you
will be prompted to specify the shell. Here, you can use the static
versions, located in /rescue:
[gabor at server ~]$ file /rescue/sh
/rescue/sh: ELF 64-bit LSB executable, AMD x86-64, version 1 (FreeBSD),
statically linked, stripped
[gabor at server ~]$ file /rescue/csh
/rescue/csh: ELF 64-bit LSB executable, AMD x86-64, version 1 (FreeBSD),
statically linked, stripped
[gabor at server ~]$ file /rescue/tcsh
/rescue/tcsh: ELF 64-bit LSB executable, AMD x86-64, version 1
(FreeBSD), statically linked, stripped
Cheers,
--
Gabor Kovesdan
FreeBSD Volunteer
EMAIL: gabor at FreeBSD.org .:|:. gabor at kovesdan.org
WEB: http://people.FreeBSD.org/~gabor .:|:. http://kovesdan.org
More information about the freebsd-questions
mailing list