From owner-freebsd-questions@FreeBSD.ORG Mon Sep 11 19:14:30 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1229116A403 for ; Mon, 11 Sep 2006 19:14:30 +0000 (UTC) (envelope-from leo@oel.sk) Received: from info.elf.stuba.sk (info.elf.stuba.sk [147.175.111.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 25C1B43D55 for ; Mon, 11 Sep 2006 19:14:28 +0000 (GMT) (envelope-from leo@oel.sk) Received: from kesp.elf.stuba.sk (kesp-gw.elf.stuba.sk [147.175.111.80]) by info.elf.stuba.sk (8.11.7/8.11.7) with ESMTP id k8BJE7M89060; Mon, 11 Sep 2006 21:14:11 +0200 (CEST) Received: from kesp.elf.stuba.sk (localhost [127.0.0.1]) by kesp.elf.stuba.sk (8.13.1/8.12.6) with ESMTP id k8BJE7Nv009081; Mon, 11 Sep 2006 21:14:07 +0200 (CEST) (envelope-from leo@oel.sk) Received: from localhost (leo@localhost) by kesp.elf.stuba.sk (8.13.1/8.13.1/Submit) with ESMTP id k8BJE7fR009078; Mon, 11 Sep 2006 21:14:07 +0200 (CEST) (envelope-from leo@oel.sk) X-Authentication-Warning: kesp.elf.stuba.sk: leo owned process doing -bs Date: Mon, 11 Sep 2006 21:14:07 +0200 (CEST) From: Leo Mrafko X-X-Sender: leo@kesp.elf.stuba.sk To: michael johnson In-Reply-To: Message-ID: <20060911211036.U8955@kesp.elf.stuba.sk> References: <20060911203455.H8955@kesp.elf.stuba.sk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Scanned: by AntiVirus filter AVilter (msg.flh6fv3X@mail2.elf.stuba.sk) Cc: freebsd-questions@freebsd.org Subject: Re: Restore master.passwd from pwd.db and spwd.db X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Sep 2006 19:14:30 -0000 On Mon, 11 Sep 2006, michael johnson wrote: > On 9/11/06, Leo Mrafko 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