From owner-freebsd-questions Thu Aug 14 23:02:55 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id XAA10492 for questions-outgoing; Thu, 14 Aug 1997 23:02:55 -0700 (PDT) Received: from obie.softweyr.ml.org ([199.104.124.49]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id XAA10487 for ; Thu, 14 Aug 1997 23:02:51 -0700 (PDT) Received: (from wes@localhost) by obie.softweyr.ml.org (8.7.5/8.6.12) id AAA18050; Fri, 15 Aug 1997 00:07:42 -0600 (MDT) Date: Fri, 15 Aug 1997 00:07:42 -0600 (MDT) Message-Id: <199708150607.AAA18050@obie.softweyr.ml.org> From: Wes Peters To: Jonathan Chen CC: questions@freebsd.org Subject: Re: Needed: Info on shells and script writing In-Reply-To: References: Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Wed, 13 Aug 1997, Annelise Anderson wrote: % Note: Do not change root's shell. It must be either sh or csh, because % otherwise you may not have a working shell when the system puts you % into single user mode. Jonathan Chen writes: > Is this true? I've got tcsh as my root's shell, and when I `shutdown' > into single user, FreeBSD prompts me for the shell to use (in which > case I accept the default `sh'). Sun used to grumble and groan, and occasionally even refuse to provide support, if you changed root's shell, especially to something not provided by Sun. The old-timers answer to your question is to make a root synonym account that uses the shell of choice. For instance, all of my systems have a rootb account with UID and GID 0, and the shell set to bash. This is the idea behind the BSD-standard 'toor' account also. -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC http://www.xmission.com/~softweyr softweyr@xmission.com