From owner-freebsd-questions@FreeBSD.ORG Mon Apr 24 14:13:59 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 880E416A401 for ; Mon, 24 Apr 2006 14:13:59 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail1.sea5.speakeasy.net (mail1.sea5.speakeasy.net [69.17.117.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id B2B1B43D53 for ; Mon, 24 Apr 2006 14:13:58 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 6050 invoked from network); 24 Apr 2006 14:13:58 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail1.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 24 Apr 2006 14:13:58 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 6B9E628425; Mon, 24 Apr 2006 10:13:57 -0400 (EDT) Sender: lowell@be-well.ilk.org To: john@cruzweb.net References: <51d7a5160604230303o514d2cabn90179490fc5698f@mail.gmail.com> <20060423094928.2db21ce3.wmoran@collaborativefusion.com> <51d7a5160604230832n310a9ecdkdb49ea301cf1430d@mail.gmail.com> <51d7a5160604230925l1b60cd28v642b00749850514c@mail.gmail.com> <20060424091417.dbb05a6f.wmoran@collaborativefusion.com> <444CD688.4000005@gmail.com> From: Lowell Gilbert Date: 24 Apr 2006 10:13:57 -0400 In-Reply-To: <444CD688.4000005@gmail.com> Message-ID: <447j5f2h96.fsf@be-well.ilk.org> Lines: 34 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: Changing Default Shell X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Apr 2006 14:13:59 -0000 John Cruz writes: > I'm running freeBSD 6 release (FreeBSD taurus.cruz 6.0-RELEASE FreeBSD > 6.0-RELEASE #0: Mon Jan 2 01:42:42 EST 2006 > root@fileserv.cruz:/usr/obj/usr/src/sys/FILESERV i386) and for > whatever reason, i'm stuck in bourne. Sure, I can type "bash" and open > a new shell that way, but it will not let me change the default at all > :( I've tried bin, csh, and tsch, all with the same result: invalid > argument. > > Here are my shells (from /etc/shells) > > /bin/sh > /bin/csh > /bin/tcsh > /usr/local/bin/bash > > I try to run chsh with flags, and I get this: > $ chsh -s /usr/local/bin/bash > Password: > chsh: entry inconsistent > chsh: pw_copy: Invalid argument > > I try to run without flags,and it gives me > > /etc/pw.ej2LjB: 7 lines, 150 characters. > Password: > chsh: entry inconsistent > chsh: pw_copy: Invalid argument > > Any help on this is much appreciated. Something is wrong with the entry already in the password file. Use vipw to (a) look at it, (b) fix it, and (c) rebuild the database.