Date: Fri, 19 Jan 2001 19:11:49 -0600 From: Philip Kizer <pckizer@nostrum.com> To: Joe Oliveiro <joe@advancewebhosting.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Rebuilding a flatfile db forn a hash file Message-ID: <200101200111.f0K1Bod12020@magus.nostrum.com> In-Reply-To: Your message of "Fri, 19 Jan 2001 14:45:33 EST." <Pine.BSF.4.21.0101191443220.11819-100000@joe.pythonvideo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Joe Oliveiro <joe@advancewebhosting.com> 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/:/<Ctrl-V><Tab>/'> virtusertable
(The <Ctrl-V> is just because some shells like tcsh/zsh will probably try
to use a <Tab> as a command-line expansion/completion indicator.)
-philip
--
Philip Kizer,
USENIX Liaison to Texas A&M University <usenix@tamu.edu>
Texas A&M CIS Operating Systems Group, Unix <pckizer@tamu.edu>
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101200111.f0K1Bod12020>
