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

Polytropon freebsd at edvax.de
Mon May 28 15:46:47 UTC 2012


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


More information about the freebsd-questions mailing list