From owner-freebsd-questions Wed Oct 4 10:26:44 2000 Delivered-To: freebsd-questions@freebsd.org Received: from athserv.otenet.gr (athserv.otenet.gr [195.170.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 498AA37B66C for ; Wed, 4 Oct 2000 10:26:40 -0700 (PDT) Received: from hades.hell.gr (patr530-b013.otenet.gr [195.167.121.141]) by athserv.otenet.gr (8.10.1/8.10.1) with ESMTP id e94HOdd27314; Wed, 4 Oct 2000 20:24:40 +0300 (EET DST) Received: (from charon@localhost) by hades.hell.gr (8.11.0/8.11.0) id e94CsAE30249; Wed, 4 Oct 2000 15:54:10 +0300 (EEST) Date: Wed, 4 Oct 2000 15:54:10 +0300 From: Giorgos Keramidas To: Matt Rudderham Cc: Alfred Perlstein , Loren Koss , freebsd-questions@FreeBSD.ORG Subject: Re: I deleted my shell by mistake!! Message-ID: <20001004155410.C27898@hades.hell.gr> References: <20001003170823.R27736@fw.wintelcom.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: ; from matt@researcher.com on Tue, Oct 03, 2000 at 09:12:15PM -0300 X-PGP-Fingerprint: 3A 75 52 EB F1 58 56 0D - C5 B8 21 B6 1B 5E 4A C2 X-URL: http://students.ceid.upatras.gr/~keramida/index.html Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Oct 03, 2000 at 09:12:15PM -0300, Matt Rudderham wrote: > >if you have a root shell open all you need to do is run 'vipw' > > > >don't don't change root's shell! > > Hi alfred, > Why should the root shell not be changed? I am also kind of new I guess. I > have it set to bash, rather than the default. one good reason i can think is that /bin/tcsh is statically linked. % file /bin/tcsh /bin/tcsh: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), statically linked, stripped when i installed bash during one of my previous installations it was dynamically linked, and required some libraries be present under /usr/local/lib. in the rare case that these libs are broken, bash is broken too. not a good thing when you are booting in single user mode, and want to work with the usual root's shell. with tcsh as root's shell i can simply use /bin/tcsh when in single user mode and: # setenv HOME /root # cd ~ # exec /bin/tcsh -l and all is just like when in multi-user mode ;-) seriously now. you can find a billion arguments against using bash as root's shell, and yet another billion arguments for using it. i just feel safer when using a shell that comes with the base-system. -- Giorgos Keramidas, < keramida @ ceid . upatras . gr > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message