From owner-freebsd-questions Sat May 9 23:07:26 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA19739 for freebsd-questions-outgoing; Sat, 9 May 1998 23:07:26 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from castor.loco.net (lucy.bedford.net [206.99.145.54]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA19730 for ; Sat, 9 May 1998 23:07:09 -0700 (PDT) (envelope-from listread@bedford.net) Received: (from listread@localhost) by castor.loco.net (8.8.8/8.8.8) id CAA13113; Sun, 10 May 1998 02:03:58 -0400 (EDT) (envelope-from listread) Message-Id: <199805100603.CAA13113@castor.loco.net> Subject: Re: Cron In-Reply-To: from Leif Neland at "May 10, 98 00:51:45 am" To: leifn@internet.dk Date: Sun, 10 May 1998 02:03:58 -0400 (EDT) Cc: dwhite@resnet.uoregon.edu, questions@FreeBSD.ORG Reply-to: djv@bedford.net From: CyberPeasant X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Leif Neland wrote: > > > On Sat, 9 May 1998, Doug White wrote: > > > On Sat, 9 May 1998, George Vagner wrote: > > > > > in order to fix this i just need to change the roots shell to sh??? > > > > Yes. You should never change root's shell, no matter how tempting. eh? Naw, we're not married to csh, are we? > I have changed the roots shell to /usr/local/bin/bash. > When I boot in single mode, I get the the question "enter name of shell or > for /bin/sh" (or equivalent). I then press return, and get > /bin/sh. > > No problem, or am I missing anything? > No problem, normal operation. Recall that at this point, /usr is (probably -- definitely, if on a separate partition), not mounted. If you wish to use bash in single user mode, then a) Compile it yourself, causing it to be statically linked (add -static to CFLAGS in the makefile). b) Install it in /bin/bash c) Edit /etc/shells to reflect this. I'd say do abc if you want bash as root's shell in /any/ mode. (avoids a security attack re shared libs). You'll get that "enter..." message no matter what, even if root's shell is /bin/sh. Tell it /bin/bash if that's what you want. Dave -- <----. mail-to: djv@bedford.net <----|=================================== <----' Zber Qnrzbaf, Srjre Qrivyf! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message