Date: Sat, 02 Jun 2007 17:40:56 +0200 From: Gabor Kovesdan <gabor@FreeBSD.org> To: serenoternullo@virgilio.it Cc: freebsd-questions@freebsd.org Subject: Re: About /bin/csh Message-ID: <46618F88.9010102@FreeBSD.org> In-Reply-To: <200706021643.24029.serenoternullo@virgilio.it> References: <200706021643.24029.serenoternullo@virgilio.it>
next in thread | previous in thread | raw e-mail | index | archive | help
Sereno Ternullo escribió: > Hi folks, > i noticed that the root's default shell, /bin/csh is not statically linked: > > [sereno@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@server ~]$ file /rescue/sh /rescue/sh: ELF 64-bit LSB executable, AMD x86-64, version 1 (FreeBSD), statically linked, stripped [gabor@server ~]$ file /rescue/csh /rescue/csh: ELF 64-bit LSB executable, AMD x86-64, version 1 (FreeBSD), statically linked, stripped [gabor@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@FreeBSD.org .:|:. gabor@kovesdan.org WEB: http://people.FreeBSD.org/~gabor .:|:. http://kovesdan.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46618F88.9010102>