From owner-freebsd-questions@FreeBSD.ORG Sat Jun 2 15:41:43 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2AD4416A400 for ; Sat, 2 Jun 2007 15:41:43 +0000 (UTC) (envelope-from gabor@FreeBSD.org) Received: from server.t-hosting.hu (server.t-hosting.hu [217.20.133.7]) by mx1.freebsd.org (Postfix) with ESMTP id DD18E13C45B for ; Sat, 2 Jun 2007 15:41:42 +0000 (UTC) (envelope-from gabor@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by server.t-hosting.hu (Postfix) with ESMTP id E91709F2DEF; Sat, 2 Jun 2007 17:41:41 +0200 (CEST) X-Virus-Scanned: amavisd-new at t-hosting.hu Received: from server.t-hosting.hu ([127.0.0.1]) by localhost (server.t-hosting.hu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id WDfCs-fKaS2m; Sat, 2 Jun 2007 17:41:15 +0200 (CEST) Received: from [192.168.2.186] (catv-5063f539.catv.broadband.hu [80.99.245.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server.t-hosting.hu (Postfix) with ESMTP id 07B299F2DE8; Sat, 2 Jun 2007 17:41:14 +0200 (CEST) Message-ID: <46618F88.9010102@FreeBSD.org> Date: Sat, 02 Jun 2007 17:40:56 +0200 From: Gabor Kovesdan User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: serenoternullo@virgilio.it References: <200706021643.24029.serenoternullo@virgilio.it> In-Reply-To: <200706021643.24029.serenoternullo@virgilio.it> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-questions@freebsd.org Subject: Re: About /bin/csh X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Jun 2007 15:41:43 -0000 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