Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 May 2012 11:51:23 -0500
From:      Antonio Olivares <olivares14031@gmail.com>
To:        Polytropon <freebsd@edvax.de>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: pwd_mkdb: /etc/master.passwd: Inappropriate file type or format
Message-ID:  <CAJ5UdcPeB2QMWqcEJmMvZrS1OQ-8vY70i=SsH%2B7wMX_aTbzG0w@mail.gmail.com>
In-Reply-To: <20120528174646.dc37d926.freebsd@edvax.de>
References:  <CAJ5UdcP5qkq-ALN_taxXrahMQ1VpzDZdHeT9eXPS1AuCdu-Ang@mail.gmail.com> <20120528174646.dc37d926.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, May 28, 2012 at 10:46 AM, Polytropon <freebsd@edvax.de> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ5UdcPeB2QMWqcEJmMvZrS1OQ-8vY70i=SsH%2B7wMX_aTbzG0w>