From owner-freebsd-questions@FreeBSD.ORG Wed Feb 4 11:14:30 2004 Return-Path: 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 DC1F416A4CE for ; Wed, 4 Feb 2004 11:14:30 -0800 (PST) Received: from dyer.circlesquared.com (host217-45-219-83.in-addr.btopenworld.com [217.45.219.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7076743D62 for ; Wed, 4 Feb 2004 11:14:05 -0800 (PST) (envelope-from peter@circlesquared.com) Received: from circlesquared.com (localhost.petanna.net [127.0.0.1]) i14JDXBX002190 for ; Wed, 4 Feb 2004 19:13:44 GMT (envelope-from peter@circlesquared.com) Message-ID: <4021445D.4060507@circlesquared.com> Date: Wed, 04 Feb 2004 19:13:33 +0000 From: Peter Risdon User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.5b) Gecko/20031102 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <44n07zvsay.fsf@be-well.ilk.org> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Cannot Add User X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Feb 2004 19:14:31 -0000 ** Sometime around 09:21 -0500 02/04/2004, Lowell Gilbert sent everyone: >> Vince Sabio writes: >> >> [...] >> > I'm now trying to install Postfix, and the problem I'm running into is >> >>> that I cannot create new user accounts. I created several user >>> accounts during installation, and they seem to be fine. But when I >>> [manually] create entries in /etc/passwd, master.passwd, and group, >>> the entries are 'ignored' -- e.g., a "chown [newuser] [filename]" >>> command fails, attempts to su from root into the user account fail, >>> etc. When I try to create the user via adduser (using the standard >>> defaults), the account creation step fails with the following error: >>> >> > pw: user '[newuser]' disappeared during update >> >> It sounds like you've messed up your user database. Try running >> pwd_mkdb(8) by hand to get it straightened out. In future, remember >> not to edit passwd and so forth by hand; stick with adduser(8) and/or >> vipw(8) to avoid shooting yourself in the foot like this. > I notice you don't recommend pw(8). I have some scripts that use pw(8) to add users with things like a /nonexistent shell - they do other stuff to do with quotas, smbpasswd and so on and allow it all to be managed in a single operation from a web interface. Am I storing up problems for myself like this? It has been fine so far. PWR.