From owner-freebsd-questions@FreeBSD.ORG Mon May 28 16:51:24 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 986E61065703 for ; Mon, 28 May 2012 16:51:24 +0000 (UTC) (envelope-from olivares14031@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 519238FC14 for ; Mon, 28 May 2012 16:51:24 +0000 (UTC) Received: by yhgm50 with SMTP id m50so2100958yhg.13 for ; Mon, 28 May 2012 09:51:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=nq1kEVhTSk5Jf6XAdKBSJGR0Jp5LWn6v7Px8m+I0gHU=; b=eBvZRD1WuoPdHMZlusrknWNaSFEPc5LWVBDct0xu281wFHc5oyhFcmswHc4H4/Z9mZ Ci59v6PXOGMOVrfoeQzEBK660AhTjc0/MxveiOiDR/ZLca7SoUjTQYzXB1P4kft4xGFh Elv+HrMujzu3tMAIFnraxLGvQN2Lk8awuharGvH4/0ZofIsTLoBP/Zx4bYVjqGMAelwC eaariBc4sO3kCd9XzTJvF06gjH0lIcoHT7lhX3UBVXVYBoyo1figxl2DlkSNwNVUry5L MgIEoppms2rlyBt9RYmSAIVeaZYH7HXhruIwyQbECB22a7/xcWJFcUNF7Wk8jzaVWk5X 1syQ== MIME-Version: 1.0 Received: by 10.50.213.71 with SMTP id nq7mr4948582igc.12.1338223883206; Mon, 28 May 2012 09:51:23 -0700 (PDT) Received: by 10.50.112.4 with HTTP; Mon, 28 May 2012 09:51:23 -0700 (PDT) In-Reply-To: <20120528174646.dc37d926.freebsd@edvax.de> References: <20120528174646.dc37d926.freebsd@edvax.de> Date: Mon, 28 May 2012 11:51:23 -0500 Message-ID: From: Antonio Olivares To: Polytropon Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 May 2012 16:51:24 -0000 On Mon, May 28, 2012 at 10:46 AM, Polytropon wrote: > 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. =A0I 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. > > -- I have run the command as root user # pwd_mkdb -d /etc/master.passwd but it fails with a pam_auth() or I can't remember exact error message, I will need to run command and post the exact error message here :( Either do this, or install a desktop which does not depend on devel/dbus package(s). Regards, Antonio