From owner-freebsd-questions@FreeBSD.ORG Tue Sep 19 02:44:25 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2460216A412 for ; Tue, 19 Sep 2006 02:44:25 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (gizmo.acns.msu.edu [35.8.1.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id A23A743D53 for ; Tue, 19 Sep 2006 02:44:24 +0000 (GMT) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (localhost [127.0.0.1]) by gizmo.acns.msu.edu (8.13.6/8.13.6) with ESMTP id k8J2hSJO015834; Mon, 18 Sep 2006 22:43:28 -0400 (EDT) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id k8J2hRlc015833; Mon, 18 Sep 2006 22:43:27 -0400 (EDT) (envelope-from jerrymc) Date: Mon, 18 Sep 2006 22:43:27 -0400 From: Jerry McAllister To: jekillen Message-ID: <20060919024327.GA15786@gizmo.acns.msu.edu> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i Cc: FreeBSD Mailing List Subject: Re: csh as default root Shell X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Sep 2006 02:44:25 -0000 On Mon, Sep 18, 2006 at 07:34:09PM -0700, jekillen wrote: > Hello; > Since I have been advised by way of correspondence with UUASC (Unix > Users of Association of Southern California) > that changing the root shell in FreeBSD is not advised and I have two > machines up and running and a third on the > way, I have purchased a text from (I don't know if it is appropriate > for this list to mention the publisher by name but > it is closely connected to the publisher of Absolute BSD). > Has anyone any comments regarding this text based on familiarity (Using > Csh and Tcsh). I noticed the publication > date is 1995. It's a manual of sorts, I'll read it before stumbling > around on lists for answers to awk ward questions. You can mention any text you want. Do we ban books in this country? But, 1995 is kind of old as things go. The book may have more recent editions. Another source is the the FreeBSD Handbook that is available free online at the FreeBSD website and also in printed versions some places. As for changing the root shell, it is probably not a good idea. First of all, /bin/sh will be there even if you don't have all the file systems mounted for some reason, such as a disk problem. Also, there may be some scripts that make a rash assumption about which shell you are in. Probably most of these are cleaned up and specify their own shells, but, just in case. So, the best thing is to leave the actual root id alone and then if you prefer another shell, such as tcsh, create another root account you can use for doing other root work when the full system is up. You only need to create a /etc/passwd entry using the vipw utility and make the UID and GID be 0 and put the preferred shell in the shell field. When you write and quit, the database and master.passwd will be properly updated if you use vipw. Put the new root account you created farther down in the passwd file than the main root account. ////jerry > > Thanks in advance. > Jeff K. > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"