Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Aug 1998 09:18:23 +0100
From:      Scott Mitchell <>
To:        Leonard Ong <>, questions@FreeBSD.ORG
Subject:   Re: Naughty Shell
Message-ID:  <>
In-Reply-To: <000001bdcb33$a86e1840$>; from Leonard Ong on Wed, Aug 19, 1998 at 12:38:52PM +0700
References:  <> <000001bdcb33$a86e1840$>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Wed, Aug 19, 1998 at 12:38:52PM +0700, Leonard Ong wrote:
> Dear Friends,
> I am really out of my wits, Please help me.  I am new to FreeBSD though I
> have some basic of Linux.  I have editted most of /etc files including
> passwd.  On the first line of the root entry, i changed default shell
>  assigned by sysinstall ) to /bin/bash.
> However, Everytime I boot, I always get csh instead of bash.  On regular
> account ( user account ), it is correct.
> Please help me how to change csh to bash.  The path to bash is correct, I
> modified both entry ( root and leonard account by setting csh to bash ) but
> root never worked while user account worked.

You should use the 'vipw' command to edit the passwd file -- it does the
appropriate file locking and makes sure that *all* the password db files
get updated properly.  Just editing /etc/passwd won't get you very far.  If
you just want to change your own entry in the passwd file you can also use
the 'chpass' command.

Also, doesn't bash live in /usr/local/bin/bash?



Scott Mitchell          | PGP Key ID |"If I can't have my coffee, I'm just 
<>   | 0x54B171B9 | like a dried up piece of roast goat"
QMW College, London, UK | 0xAA775B8B |     -- J. S. Bach.

To Unsubscribe: send mail to
with "unsubscribe freebsd-questions" in the body of the message

Want to link to this message? Use this URL: <>