Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Aug 1998 09:18:23 +0100
From:      Scott Mitchell <scott@dcs.qmw.ac.uk>
To:        Leonard Ong <Leonard_Ong@iname.com>, questions@FreeBSD.ORG
Subject:   Re: Naughty Shell
Message-ID:  <19980819091823.A16954@dcs.qmw.ac.uk>
In-Reply-To: <000001bdcb33$a86e1840$48069aca@ZhugeLiang.ong.net.id>; from Leonard Ong on Wed, Aug 19, 1998 at 12:38:52PM +0700
References:  <199808182232.PAA15523@hub.freebsd.org> <000001bdcb33$a86e1840$48069aca@ZhugeLiang.ong.net.id>

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?

HTH,

	Scott.

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

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: <http://docs.FreeBSD.org/cgi/mid.cgi?19980819091823.A16954>