From owner-freebsd-questions Mon Sep 7 08:07:53 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA12253 for freebsd-questions-outgoing; Mon, 7 Sep 1998 08:07:53 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from rucus.ru.ac.za (rucus.ru.ac.za [146.231.29.2]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id IAA12170 for ; Mon, 7 Sep 1998 08:07:15 -0700 (PDT) (envelope-from nbm@rucus.ru.ac.za) Received: (qmail 840 invoked by uid 1003); 7 Sep 1998 15:06:51 -0000 Message-ID: <19980907170651.A29105@rucus.ru.ac.za> Date: Mon, 7 Sep 1998 17:06:51 +0200 From: Neil Blakey-Milner To: Bob Hindla , freebsd-questions@FreeBSD.ORG Subject: Re: Configuration files References: <01bdda69$ace8c880$ded454a6@d300.panix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: <01bdda69$ace8c880$ded454a6@d300.panix.com>; from Bob Hindla on Mon, Sep 07, 1998 at 10:13:24AM -0400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon 1998-09-07 (10:13), Bob Hindla wrote: > OK, I've got BSD up and running. I just have few questions. Well done, welcome to the family :) > I've modified .bash_profile in /etc and /root (which is my home, at least > initially). Now how do I get bash to be my default shell as soon as machine > comes up? I noted a line "!/bin/sh" in rc.conf. But it was commented out > with a pound sign. #!/bin/sh is a "hash-bang" path to the shell which will run the script, /bin/sh in this case. That is how it's supposed to be. Firstly, you probably shouldn't change to bash for the root user. Rather use /bin/sh for root, and make a normal user, install the bash port in /usr/ports/shells/bash2, and then use 'chsh -s /usr/local/bin/bash' to change that user to bash. Then you can 'su -m' to root when you need to, and still use bash. Of course, some people might say that you can use bash as root, but I was just brought up this way. I don't understand why you want bash to be your "default shell" as soon as your machine comes up, or, rather, what you mean by that. Your shell is dependant on your login, so rather change it there. If something fails while booting up, /bin/sh will almost always be there, unless your drive is corrupted, in which case it doesn't matter, you're in big enough trouble. You can always manually use bash in any case, assuming you can mount /usr, if you have one. > What does rc stand for? I have no idea, but rc runs scripts for auto-reboot and daemon startup. (from the manpage) Neil -- Neil Blakey-Milner nbm@rucus.ru.ac.za To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message