From owner-freebsd-questions@FreeBSD.ORG Mon Apr 24 14:55:22 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 8B48B16A40A for ; Mon, 24 Apr 2006 14:55:22 +0000 (UTC) (envelope-from xfb52@dial.pipex.com) Received: from smtp-out4.blueyonder.co.uk (smtp-out4.blueyonder.co.uk [195.188.213.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9576043D49 for ; Mon, 24 Apr 2006 14:55:20 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from [172.23.170.145] (helo=anti-virus03-08) by smtp-out4.blueyonder.co.uk with smtp (Exim 4.52) id 1FY2Sz-0004J5-Tr; Mon, 24 Apr 2006 15:55:09 +0100 Received: from [80.192.24.2] (helo=[192.168.0.2]) by asmtp-out6.blueyonder.co.uk with esmtp (Exim 4.52) id 1FY2Sz-0003uw-7E; Mon, 24 Apr 2006 15:55:09 +0100 Message-ID: <444CE6CC.3050409@dial.pipex.com> Date: Mon, 24 Apr 2006 15:55:08 +0100 From: Alex Zbyslaw User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-GB; rv:1.7.12) Gecko/20060305 X-Accept-Language: en MIME-Version: 1.0 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> <447j5f2h96.fsf@be-well.ilk.org> <444CE0F7.3070303@cruzweb.net> In-Reply-To: <444CE0F7.3070303@cruzweb.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Changing Default Shell X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Apr 2006 14:55:22 -0000 John Cruz wrote: > Lowell Gilbert wrote: > >> 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. >> >> > > Thanks, that did it! I tried manually editing /etc/passwd before and I > guess there's other ways that have to be done to change it. > If you edit the passwd file manually you should always use vipw. Apart from locking which prevents two people editing at the same time and mucking things up, you also get consistency checking. from man vipw > The vipw utility performs a number of consistency checks on the > password > entries, and will not allow a password file with a ``mangled'' > entry to > be installed. If vipw rejects the new password file, the user is > prompted to re-enter the edit session. --Alex