From owner-freebsd-isp Thu Dec 11 10:44:41 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id KAA04078 for isp-outgoing; Thu, 11 Dec 1997 10:44:41 -0800 (PST) (envelope-from owner-freebsd-isp) Received: from teel.info-noire.com (XP11-1-4-06.interlinx.qc.ca [207.253.79.86]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id KAA04065 for ; Thu, 11 Dec 1997 10:44:21 -0800 (PST) (envelope-from alex@gel.usherb.ca) Received: from localhost (alex@localhost) by teel.info-noire.com (8.8.8/8.8.8) with SMTP id NAA21150; Thu, 11 Dec 1997 13:52:06 -0500 (EST) (envelope-from alex@teel.info-noire.com) Date: Thu, 11 Dec 1997 13:51:37 -0500 (EST) From: Alex Boisvert Reply-To: boia01@gel.usherb.ca To: Jack Wenger cc: FreeBSD ISP list Subject: Re: Makemap In-Reply-To: <3.0.32.19971211104409.0098f380@acw-web.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Thu, 11 Dec 1997, Jack Wenger wrote: > HELP! > I just did a stupid. I added an entry to my virtusertable and did: > > makemap hash ./virtusertable > ./virtusertable > > destroying my virtusertable. > Is there any way I can get the information back out of virtusertable.db? You can install the port called "db", which is newer version of db (FreeBSD's default is v1.85, the most recent version is v2.3.11, I think). Included in this port is a utility called "db_dump185" which will do what you want. You'll have to compile the port... After that, try something like: host% db_dump185 -p /etc/virtusertable.db to see your file resurected in ASCII form. Good luck, Alex Boisvert.