From owner-freebsd-questions Wed Aug 19 01:25:52 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA09491 for freebsd-questions-outgoing; Wed, 19 Aug 1998 01:25:52 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from hotpoint.dcs.qmw.ac.uk (hotpoint.dcs.qmw.ac.uk [138.37.88.162]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA09478 for ; Wed, 19 Aug 1998 01:25:50 -0700 (PDT) (envelope-from scott@dcs.qmw.ac.uk) Received: from brunos-sun.dcs.qmw.ac.uk [138.37.88.185]; by hotpoint.dcs.qmw.ac.uk (8.8.7/8.8.5/S-4.0) with SMTP; id JAA08980; Wed, 19 Aug 1998 09:25:10 +0100 (BST) Received: locally by brunos-sun (SMI-8.6/QMW-client-3.2b); poster "scott"; id JAA17015; Wed, 19 Aug 1998 09:18:23 +0100 Message-ID: <19980819091823.A16954@dcs.qmw.ac.uk> Date: Wed, 19 Aug 1998 09:18:23 +0100 From: Scott Mitchell To: Leonard Ong , questions@FreeBSD.ORG Subject: Re: Naughty Shell References: <199808182232.PAA15523@hub.freebsd.org> <000001bdcb33$a86e1840$48069aca@ZhugeLiang.ong.net.id> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: <000001bdcb33$a86e1840$48069aca@ZhugeLiang.ong.net.id>; from Leonard Ong on Wed, Aug 19, 1998 at 12:38:52PM +0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 | 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