Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 May 2012 17:46:46 +0200
From:      Polytropon <freebsd@edvax.de>
To:        Antonio Olivares <olivares14031@gmail.com>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: pwd_mkdb: /etc/master.passwd: Inappropriate file type or format
Message-ID:  <20120528174646.dc37d926.freebsd@edvax.de>
In-Reply-To: <CAJ5UdcP5qkq-ALN_taxXrahMQ1VpzDZdHeT9eXPS1AuCdu-Ang@mail.gmail.com>
References:  <CAJ5UdcP5qkq-ALN_taxXrahMQ1VpzDZdHeT9eXPS1AuCdu-Ang@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120528174646.dc37d926.freebsd>