Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Oct 2000 15:54:10 +0300
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Matt Rudderham <matt@researcher.com>
Cc:        Alfred Perlstein <bright@wintelcom.net>, Loren Koss <loren@pciway.com>, freebsd-questions@FreeBSD.ORG
Subject:   Re: I deleted my shell by mistake!!
Message-ID:  <20001004155410.C27898@hades.hell.gr>
In-Reply-To: <NDBBLEKOOLGIBFPGLFEKKEGECEAA.matt@researcher.com>; from matt@researcher.com on Tue, Oct 03, 2000 at 09:12:15PM -0300
References:  <20001003170823.R27736@fw.wintelcom.net> <NDBBLEKOOLGIBFPGLFEKKEGECEAA.matt@researcher.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001004155410.C27898>