From owner-freebsd-questions@FreeBSD.ORG Wed Jan 7 07:08:50 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 A1C311065674 for ; Wed, 7 Jan 2009 07:08:50 +0000 (UTC) (envelope-from frank@esperance-linux.co.uk) Received: from mailout.zetnet.co.uk (mailout.zetnet.co.uk [194.247.47.231]) by mx1.freebsd.org (Postfix) with ESMTP id 31AE68FC1A for ; Wed, 7 Jan 2009 07:08:50 +0000 (UTC) (envelope-from frank@esperance-linux.co.uk) Received: from irwell.zetnet.co.uk ([194.247.47.48] helo=zetnet.co.uk) by mailout.zetnet.co.uk with esmtp (Exim 4.63) (envelope-from ) id 1LKSX2-0001h5-QT; Wed, 07 Jan 2009 07:08:48 +0000 Received: from melon.esperance-linux.co.uk (54-144.adsl.zetnet.co.uk [194.247.54.144]) by zetnet.co.uk (8.14.1/8.14.1/Debian-9) with ESMTP id n0778l19018554; Wed, 7 Jan 2009 07:08:47 GMT Received: by melon.esperance-linux.co.uk (Postfix, from userid 1001) id 4EF11FCB841; Wed, 7 Jan 2009 07:08:42 +0000 (GMT) Date: Wed, 7 Jan 2009 07:08:42 +0000 From: Frank Shute To: David Christensen Message-ID: <20090107070842.GB36732@melon.esperance-linux.co.uk> Mail-Followup-To: David Christensen , freebsd-questions@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Face: *}~{PHnDTzvXPe'wl_-f%!@+r5; VLhb':*DsX%wEOPg\fDrXWQJf|2\,92"DdS%63t*BHDyQ|OWo@Gfjcd72eaN!4%NE{0]p)ihQ1MyFNtWL X-Operating-System: FreeBSD 6.3-RELEASE-p2 i386 X-Organisation: 'http://www.shute.org.uk/' X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.1.7 (zetnet.co.uk [194.247.46.1]); Wed, 07 Jan 2009 07:08:48 +0000 (GMT) Cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD 7.0-RELEASE-i386 will changing root shell break anything? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Frank Shute List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jan 2009 07:08:50 -0000 On Sun, Jan 04, 2009 at 02:09:03PM -0800, David Christensen wrote: > > freebsd-questions: > > I'm building a fresh Amanda server using FreeBSD 7.0-RELEASE-i386: > > > http://portsmon.freebsd.org/portoverview.py?category=misc&portname=amand > a-server > > > Most of my software background is GNU/Linux. I would prefer using the > Bash shell, but the default FreeBSD shell for root appears to be the C > shell: > > p3450# echo $SHELL > /bin/csh > > > I have changed the root shell to Bash on another machine I use as a CVS > server and haven't noticed any issues yet, but I've been wondering if > I'm setting myself up for problems by doing so. > > > Does anybody know if it's okay to change the root shell on FreeBSD > 7.0-RELEASE-i386? I change my root shell to pdksh. It's statically linked and I copy it from /usr/local/bin to /bin. In single user mode you're prompted for a shell (/bin/sh is the default) so I usually use that. I've never had any problems (famous last words ;) Just have to remember to copy the executable to the root filesystem if your shell gets upgraded. What you don't want to do is overwrite /bin/sh with /bin/bash or anything like that. The boot up scripts depend on /bin/sh and although bash is meant to be Bourne compatible, I wouldn't trust it myself to bring up the system without problems. > > > TIA, > > David Regards, -- Frank Contact info: http://www.shute.org.uk/misc/contact.html