From owner-freebsd-questions@FreeBSD.ORG Sun Mar 1 18:54:26 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 70E891065670 for ; Sun, 1 Mar 2009 18:54:26 +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 2CD518FC16 for ; Sun, 1 Mar 2009 18:54:25 +0000 (UTC) (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 n21IpWJG052475; Sun, 1 Mar 2009 13:51:32 -0500 (EST) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id n21IpWNM052474; Sun, 1 Mar 2009 13:51:32 -0500 (EST) (envelope-from jerrymc) Date: Sun, 1 Mar 2009 13:51:32 -0500 From: Jerry McAllister To: Sniper Message-ID: <20090301185131.GA52432@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-questions@freebsd.org Subject: Re: 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: Sun, 01 Mar 2009 18:54:26 -0000 On Sun, Mar 01, 2009 at 03:50:29PM +0100, Sniper wrote: > Hi! > > I heard that changing root shell to bash is not good idea, also programing > in any C shell not applicable. So which shell is the most appropriate for > root user ? You can get your tail in a crack if you boot to single user or another file system like /usr is not available. /bin/csh (which on FreeBSD is the same as tcsh) is always available and a few things are written so they expect it. So, leave root alone. If you must lower yourself to bash, make another account and set its shell to bash. You can even make an alternate root and make it bash if you really must work in root. USe vipw and copy the toor line in the passwd file and change the name to something you like and the shell to bash and the home directory to /root/whatever. Then set the password for this account As root do: passwd whatever follow prompts. You must put the id name on the passwd command or it will change root instead. I am not necessarily recommending all this, but it is better tham changing the actual root account's shell. ////jerry > > > Regards, > > Jurif > _______________________________________________ > 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"