From owner-freebsd-questions Thu Feb 25 0:47:59 1999 Delivered-To: freebsd-questions@freebsd.org Received: from gwdu60.gwdg.de (gwdu60.gwdg.de [134.76.10.60]) by hub.freebsd.org (Postfix) with ESMTP id 130D514D34 for ; Thu, 25 Feb 1999 00:47:07 -0800 (PST) (envelope-from kheuer@gwdu60.gwdg.de) Received: from localhost (kheuer@localhost) by gwdu60.gwdg.de (8.9.0/8.9.0) with SMTP id JAA11621; Thu, 25 Feb 1999 09:46:19 +0100 (CET) Date: Thu, 25 Feb 1999 09:46:19 +0100 (CET) From: Konrad Heuer To: Jonathan Chen Cc: Langa Kentane , "'freebsd-questions@freebsd.org'" Subject: Re: csh or bash (newbie) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Content-Transfer-Encoding: QUOTED-PRINTABLE Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 25 Feb 1999, Jonathan Chen wrote: > On Wed, 24 Feb 1999, Langa Kentane wrote: >=20 > > The other day I asked for help on how to change the default shell for r= oot. > > Some told me that it was not a very good idea to change root's shell.= =20 > >=20 > > Can someone explain to me why? >=20 > Can't think of a reason why. >=20 > Some may say that when you go into single user mode, having the > non-default root shell will cause a problem; but FreeBSD will prompt > you for which shell to use when you go to single-user mode (in > which case I'd go with the default /bin/sh). I like use tcsh as my default shell (for root, too), but one has to be aware of two problems that might occur especially in single user mode: 1) bash, ksh, tcsh, zsh etc. are installed in /usr/local/bin and are usually not available immediately in single user mode when only the root file system is mounted read-only.=20 2) It doesn't help to copy those shells to /bin since they're dynamically linked and thus need the shared libraries in /usr/lib which may not be loadable when booting into single-user mode.=20 Regards // // Konrad Heuer ____ ___ _____= __=20 // Gesellschaft f=FCr wissenschaftliche / __/______ ___ / _ )/ __= / _ \ // Datenverarbeitung mbH G=D6ttingen / _// __/ -_) -_) _ |\ \/= // / // Am Fa=DFberg, D-37077 G=D6ttingen /_/ /_/ \__/\__/____/___= /____/=20 // Deutschland (Germany) ----- The Power to Serve ----= - // http://www.freebsd.org // kheuer@gwdu60.gwdg.de // To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message