pwd_mkdb: /etc/master.passwd: Inappropriate file type or format

Antonio Olivares olivares14031 at
Mon May 28 16:51:24 UTC 2012

On Mon, May 28, 2012 at 10:46 AM, Polytropon <freebsd at> 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.  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.
> --

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).



More information about the freebsd-questions mailing list