From owner-freebsd-questions Thu Feb 25 16:45:47 1999 Delivered-To: freebsd-questions@freebsd.org Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (Postfix) with ESMTP id 4FA8914E43 for ; Thu, 25 Feb 1999 16:45:42 -0800 (PST) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id LAA02481; Fri, 26 Feb 1999 11:15:23 +1030 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.3/8.9.0) id LAA14838; Fri, 26 Feb 1999 11:15:18 +1030 (CST) Message-ID: <19990226111518.J431@lemis.com> Date: Fri, 26 Feb 1999 11:15:18 +1030 From: Greg Lehey To: Konrad Heuer , Jonathan Chen Cc: Langa Kentane , freebsd-questions@freebsd.org Subject: Re: csh or bash (newbie) References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: ; from Konrad Heuer on Thu, Feb 25, 1999 at 09:46:19AM +0100 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thursday, 25 February 1999 at 9:46:19 +0100, Konrad Heuer wrote: > > On Thu, 25 Feb 1999, Jonathan Chen wrote: > >> On Wed, 24 Feb 1999, Langa Kentane wrote: >> >>> The other day I asked for help on how to change the default shell for root. >>> Some told me that it was not a very good idea to change root's shell. >>> >>> Can someone explain to me why? >> >> Can't think of a reason why. >> >> 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. > > 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. Sure, but how often are you in single-user mode? And since you get prompted for a shell (and the default is /bin/sh), you're covered there too. I've been using /bin/bash as my root shell for years. Greg -- When replying to this message, please copy the original recipients. For more information, see http://www.lemis.com/questions.html See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message