From owner-freebsd-questions@FreeBSD.ORG Sat Jul 10 23:08: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 DD13516A4CE for ; Sat, 10 Jul 2004 23:08:08 +0000 (GMT) Received: from mail.broadpark.no (mail.broadpark.no [217.13.4.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 72BE543D2D for ; Sat, 10 Jul 2004 23:08:08 +0000 (GMT) (envelope-from henrik.w.lund@broadpark.no) Received: from [10.0.0.3] (52.80-202-129.nextgentel.com [80.202.129.52]) by mail.broadpark.no (Postfix) with ESMTP id EE1BF5926; Sun, 11 Jul 2004 01:08:36 +0200 (MEST) Message-ID: <40F0F582.9060609@broadpark.no> Date: Sun, 11 Jul 2004 01:08:34 -0700 From: Henrik W Lund User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040616 X-Accept-Language: nb, en-us, en MIME-Version: 1.0 To: Kristian Holdich References: <40F00DDD.7772.12F6CBB@localhost> <1089468142.26300.46.camel@slide.hopto.org> In-Reply-To: <1089468142.26300.46.camel@slide.hopto.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 23:08:09 -0000 Kristian Holdich wrote: >On Sat, 2004-07-10 at 14:40, Kjell Midtseter wrote: > > >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. > > As far as I know, you're prompted for a root shell whenever you enter single user mode anyways (I am, at least, and I use /bin/csh for root normally. I'm still prompted every time). So, whatever shell you use for root in multiuser mode shouldn't matter, as single user mode is a different kettle of fish altogether. Granted, getting into the habit of using one shell for root in multiuser, then having to switch into an unfamiliar shell for single user could complicate work slightly... As for vital scripts failing, I doubt it. Unless you start symlinking like crazy, things should work fine, as scripts starting with #!/bin/sh will always use /bin/sh and so on (so unless /bin/sh is a symlink to /usr/bin/wish or some such exotic setup, nothing will barf. :-) -Henrik W Lund