Restore master.passwd from pwd.db and spwd.db

Leo Mrafko leo at oel.sk
Mon Sep 11 12:14:30 PDT 2006


On Mon, 11 Sep 2006, michael johnson wrote:

> On 9/11/06, Leo Mrafko <leo at oel.sk> wrote:
> > Hello,
> >
> > after some weird disk accident I have only pwd.db and spwd.db from my
> > passwd files left. Passwd and master.passwd are missing. Couln't find them
> > in /lost+found too. The system is running, but I can not add new users, of
> > course (baybe only using pwd_mkdb -u ).
> > Is there any way how to reconstruct master.passwd ? I was searching
> > through the archives and dind't finde the answer. I was also trying to
> > look into pwd_mkdb source, but ...
> >
>
> /var/backups contains a few files you may need.

Yeah, really, thanks, I found there some backup. But I still wonder, if
there is a possibily to reconstruct master passwd back from .db files,
e.g. in case this backup is not up-to-date. I think it should be possible,
but I don't knw how..

Thanks
Leo



More information about the freebsd-questions mailing list