From owner-freebsd-questions Wed Aug 18 16:46:34 1999 Delivered-To: freebsd-questions@freebsd.org Received: from dt011n65.san.rr.com (dt010nb9.san.rr.com [204.210.12.185]) by hub.freebsd.org (Postfix) with ESMTP id 7085314F50 for ; Wed, 18 Aug 1999 16:46:21 -0700 (PDT) (envelope-from Doug@gorean.org) Received: from gorean.org (master [10.0.0.2]) by dt011n65.san.rr.com (8.9.3/8.8.8) with ESMTP id QAA47980; Wed, 18 Aug 1999 16:46:49 -0700 (PDT) (envelope-from Doug@gorean.org) Message-ID: <37BB45F2.71B6FFD3@gorean.org> Date: Wed, 18 Aug 1999 16:46:58 -0700 From: Doug Organization: Triborough Bridge & Tunnel Authority X-Mailer: Mozilla 4.61 [en] (X11; U; FreeBSD 4.0-CURRENT-0815 i386) X-Accept-Language: en MIME-Version: 1.0 To: "Bill A. K." Cc: FreeBSD Questions Subject: Re: roots shell References: <002b01bee97f$2a3fdf60$01010101@bopper> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Bill A. K." wrote: > > hi, > > is there any way to change root's default shell from csh to bash. Yes there is, but it's a bad idea. Several people have already pointed out some reasons why. An additional alternative to su -m is to put the following in /root/.login: [ -x /usr/local/bin/bash] && exec /usr/local/bin/bash That will start bash for you if it's available, and if it isn't you can still log in. > i've already changed the path to my shell in both /etc/passwd and > /etc/master.passwd but it didn't change it. You should use vipw for editing, don't ever edit them directly. > and i would also like to know how to customize my bash prompt with my > current directory for example. http://freebsd.simplenet.com/Bash-prompts.txt Good luck, Doug To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message