From owner-freebsd-questions@FreeBSD.ORG Wed Nov 3 08:48:14 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 1609016A4CE for ; Wed, 3 Nov 2004 08:48:14 +0000 (GMT) Received: from helium.webpack.hosteurope.de (helium.webpack.hosteurope.de [217.115.142.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id CF10F43D46 for ; Wed, 3 Nov 2004 08:48:13 +0000 (GMT) (envelope-from me@hexren.net) Received: from pd955283b.dip.t-dialin.net ([217.85.40.59] helo=hexren) by helium.webpack.hosteurope.de with asmtp (Exim 4.34) id 1CPGoO-0002Vv-FM; Wed, 03 Nov 2004 09:48:12 +0100 Date: Wed, 3 Nov 2004 09:48:15 +0100 From: Hexren X-Mailer: The Bat! (v1.62i) Business X-Priority: 3 (Normal) Message-ID: <181739351.20041103094815@hexren.net> To: Gerard Samuel In-Reply-To: <41887286.1070507@trini0.org> References: <41883BFF.5040000@trini0.org> <418850C5.4060203@trini0.org> <41887286.1070507@trini0.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-HE-MXrcvd: no cc: freebsd-questions@freebsd.org Subject: Re[2]: Upgrading 5.2.1 to 5.3R2 (Maybe a problem adding a user) [SOLVED] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Hexren List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Nov 2004 08:48:14 -0000 GS> Gerard Samuel wrote: >> Gerard Samuel wrote: >> >>> Ok, so I upgraded, ran mergemaster, and merged /etc/group (and >>> /etc/master.passwd I think) via mergemaster. >>> I merged those files to retain my non root user account. >>> I rebooted, and I haven't been able to log into my non root account. >>> I tried to readd the account via adduser, but it says that the user >>> already exists. >>> So I tried rmuser, and it says that the user doesn't exist. >>> So I manually removed the account name from /etc/group, >>> /etc/master.passwd, /etc/passwd, >>> and tried to add the user, via adduser. >>> When it tries to add the user, it fails (dont remember the message >>> right now). >> >> >>> Anyone has any suggestions on how I can get the old user account back?? >>> N.B. I did back up /etc before mergemaster... >>> Thanks >> GS> Well I got it working again. Im not sure what fixed it, but I believe GS> running vipw fixed what was wrong with it... --------------------------------------------- You've read this ? http://www.freebsd.org/cgi/man.cgi?query=passwd&apropos=0&sektion=0&manpath=FreeBSD+5.2.1-RELEASE+and+Ports&format=html And you do understand that you should run "pwd_mkdb" after manually editing the passwd file (vipw actually does that for you) ? My take on your problem would be that you merged the 2 files and did not run pwd_mkdb after that which led to an inconsistent state between /etc/passwd/ and /etc/master.passwd which is the main user database. Take that with a grant of suspection as I am really no expert ;) mfg Hexren