From owner-freebsd-questions Fri Jan 19 17:12:15 2001 Delivered-To: freebsd-questions@freebsd.org Received: from magus.nostrum.com (magus.nostrum.com [216.90.209.2]) by hub.freebsd.org (Postfix) with ESMTP id 65A4C37B400 for ; Fri, 19 Jan 2001 17:11:57 -0800 (PST) Received: (from pckizer@localhost) by magus.nostrum.com (8.11.0/8.11.0) id f0K1Bod12020; Fri, 19 Jan 2001 19:11:50 -0600 (CST) Message-Id: <200101200111.f0K1Bod12020@magus.nostrum.com> From: Philip Kizer To: Joe Oliveiro Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Rebuilding a flatfile db forn a hash file In-reply-to: Your message of "Fri, 19 Jan 2001 14:45:33 EST." Date: Fri, 19 Jan 2001 19:11:49 -0600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Joe Oliveiro wrote: >The owner of one of the boxes i admin is a complete idiot and zero'd out >his /etc/virtusertable file. The only thing he has on the server now is a >hashed file of the /etc/virtusertable file (virtusertable.db). > >Is there a way to recreate the virtusertable text file from the hashed >file? The usual wasy to do this should be the praliases(1) command that comes with sendmail(8). Usage: # praliases -f /etc/virtusertable > virtusertable.txt No extra tools/packages/programming needed. You will then need to go in and convert the colons (':') to tabs, i.e.: # praliases -f /etc/virtusertable | sed -e 's/://'> virtusertable (The is just because some shells like tcsh/zsh will probably try to use a as a command-line expansion/completion indicator.) -philip -- Philip Kizer, USENIX Liaison to Texas A&M University Texas A&M CIS Operating Systems Group, Unix To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message