Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Aug 1999 16:46:58 -0700
From:      Doug <Doug@gorean.org>
To:        "Bill A. K." <billieakay@yahoo.com>
Cc:        FreeBSD Questions <questions@freebsd.org>
Subject:   Re: roots shell
Message-ID:  <37BB45F2.71B6FFD3@gorean.org>
References:  <002b01bee97f$2a3fdf60$01010101@bopper>

next in thread | previous in thread | raw e-mail | index | archive | help
"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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?37BB45F2.71B6FFD3>