From owner-freebsd-questions Sun Apr 21 9: 9:59 2002 Delivered-To: freebsd-questions@freebsd.org Received: from axel.truedestiny.net (a185066.upc-a.chello.nl [62.163.185.66]) by hub.freebsd.org (Postfix) with ESMTP id 1B1DD37B417 for ; Sun, 21 Apr 2002 09:09:55 -0700 (PDT) Received: by axel.truedestiny.net (Postfix, from userid 1000) id 7DE4949AB2; Sun, 21 Apr 2002 18:09:57 +0200 (CEST) Date: Sun, 21 Apr 2002 18:09:57 +0200 From: Axel Scheepers To: Henry smith Cc: freebsd-questions@freebsd.org Subject: Re: repair password? Message-ID: <20020421180957.F82499@mars.thuis> Reply-To: Axel Scheepers References: <20020421095046.51757.qmail@web21107.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020421095046.51757.qmail@web21107.mail.yahoo.com>; from getzz11@yahoo.com on Sun, Apr 21, 2002 at 02:50:46AM -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Apr 21, 2002 at 02:50:46AM -0700, Henry smith wrote: > Hi, > > My password database is mess up. I start the server > using single user, but I can't change the root > password. > > #passwd > passwd: unknown user root > #passwd test > pwd_mkdb: /etc/pwd.db.tmp: Inappropriate file type or > format. > > Anybody know how to resolve this problem? > > Thank you. Hi, You could try to edit /etc/master.passwd by hand to fix the errors, then rebuild the passwd db using the pwd_mkdb command. You can use the -C option to check if you've edited it right: #man pwd_mkdb ... -C Check if the password file is in the correct format. Do not change, add, or remove any files. ... > > > __________________________________________________ > Do You Yahoo!? > Yahoo! Games - play chess, backgammon, pool and more > http://games.yahoo.com/ > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message Gr, -- Axel Scheepers UNIX System Administrator email: axel@axel.truedestiny.net a.scheepers@iae.nl http://axel.truedestiny.net/~axel ------------------------------------------ "We demand rigidly defined areas of doubt and uncertainty!" -- Vroomfondel ------------------------------------------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message