From owner-freebsd-questions@FreeBSD.ORG Sat Jul 10 14:03:08 2004 Return-Path: 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 3C80916A4CF for ; Sat, 10 Jul 2004 14:03:08 +0000 (GMT) Received: from smtp-out4.blueyonder.co.uk (smtp-out4.blueyonder.co.uk [195.188.213.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id B6E1843D4C for ; Sat, 10 Jul 2004 14:03:07 +0000 (GMT) (envelope-from kjholdich@yahoo.co.uk) Received: from [192.168.8.100] ([82.35.58.248]) by smtp-out4.blueyonder.co.uk with Microsoft SMTPSVC(5.0.2195.5600); Sat, 10 Jul 2004 15:03:19 +0100 From: Kristian Holdich To: Kjell Midtseter In-Reply-To: <40F00DDD.7772.12F6CBB@localhost> References: <40F00DDD.7772.12F6CBB@localhost> Content-Type: text/plain Message-Id: <1089468142.26300.46.camel@slide.hopto.org> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Sat, 10 Jul 2004 15:02:22 +0100 Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 10 Jul 2004 14:03:22.0196 (UTC) FILETIME=[A91A9940:01C46686] cc: "freebsd-questions@freebsd.org" Subject: Re: Newbieish Desktop Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Jul 2004 14:03:08 -0000 On Sat, 2004-07-10 at 14:40, Kjell Midtseter wrote: > On 10 Jul 2004 at 10:03, Kristian Holdich wrote: > > > Speaking of root, i'm so used to Bash i'd like to switch to it for the > > root user - is there any gotchas with moving bash to /bin and updating > > /etc/shells to allow it? > >From my notes: > -------- > Use FreeBSD's password file manipulation utility, vipw, to > modify root's default shell. At a root prompt, type vipw. A copy > of the /etc/passwd file will be displayed. Use standard vi > editing commands to change root's default shell from /bin/csh > (all of the way at the end of the first line) to > /usr/local/bin/bash. While you're already editing the file, go > ahead and change root's unofficial name 'Charlie &' to 'Super- > Nina' or any other name that envisions Superman, etc. When you > get mail from root (e.g. from the cron jobs that run every > night), it'll now be maked as coming from 'Super-Nina' and not > 'Charlie &'...just a little bit nicer. Save & exit. > ----------- > GL from kjell > There's one glaring problem with that, if for some reason you need to go into single user mode under FreeBSD's default slicing scheme root wont have a shell as /usr isn't mounted. It's always good practice to keep the shell root uses in /sbin or /bin. You can change the shell root, or any other user uses by using chpass also, and so long as the shell is in /etc/shells it will be valid. I was actually more interested in understanding whether any critical scripts would start barfing if the shell got changed, I know on Solaris I got into the habit of keeping root using /sbin/sh.