On Fri, 20 Apr 2001, [EMAIL PROTECTED] wrote:
[...]
> My vpasswd file got wiped out and what's left is the vpasswd.cdb file.
> Does anyone know of any ways to recover the vpasswd file from vpasswd.cdb?

Install the cdb package:

http://cr.yp.to/cdb/install.html

Then do this:

cdbdump < vpasswd.cdb | sed 's/^[^:]*:\(.*\)->\(.*\)$/\1:\2/;/^$/d' \
        > vpasswd

NB. This will fail if any of the fields contain "->", which is likeliest
in the crypted password field. To check for this, do:

cat vpasswd.cdb | grep -e '->'


> Anyway, what are the possible reason why the file disappeared in the first
> place?
> I'm using  vpopmail-4.9.6-1 / sqwebmail-0.34a.
> 
> Which one of the above causes it?

No idea.


hope this helps,
-- 
Daniel Biddle <[EMAIL PROTECTED]>

Reply via email to