From owner-freebsd-questions@FreeBSD.ORG Mon May 28 15:46:47 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9CC5F1065690 for ; Mon, 28 May 2012 15:46:47 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 58FF78FC14 for ; Mon, 28 May 2012 15:46:47 +0000 (UTC) Received: from r56.edvax.de (port-92-195-20-192.dynamic.qsc.de [92.195.20.192]) by mx01.qsc.de (Postfix) with ESMTP id 95DF93CE9A; Mon, 28 May 2012 17:46:46 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id q4SFkk4F001938; Mon, 28 May 2012 17:46:46 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Mon, 28 May 2012 17:46:46 +0200 From: Polytropon To: Antonio Olivares Message-Id: <20120528174646.dc37d926.freebsd@edvax.de> In-Reply-To: References: Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD Questions Subject: Re: pwd_mkdb: /etc/master.passwd: Inappropriate file type or format X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 May 2012 15:46:47 -0000 On Mon, 28 May 2012 08:44:46 -0500, Antonio Olivares wrote: > I have copied the file master.passwd.bak from /var/backups/ into /etc/ > and it still does not work. I cannot get around this error. You have to make sure /etc/passwd and /etc/master.passwd have the same content (just that they differ in passwords and in file permissions). The database files /etc/(s)pwd.db will be created from those files by the pwd_mkdb command. This of course requires root access (which I assume you have made sure). > Is there a way to fix it via livecd/livedvd, or can I copy it from > another machine and resync it? You can use the files (_both_ files!) from before starting the dbus installation. Regenerate the databases with the pwd_mkdb command. > Or do I just flat install FreeBSD again and be done with it? That is possible, but should be your last option. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...