script to filter usr and passwd

Mad Unix madunix at gmail.com
Wed Aug 3 07:40:20 UTC 2005


I want to catch up up all user names and passwords which been created into qmail
I have a file which include the following structure

name:   peter
passwd: $1$WmPAy$xrW9rd7U3.EGMMKEpe63A0
clear passwd: password
uid:    0
gid:    0
        all services available
dir:       /home/vpopmail/domains/dom/1/peter
quota:     52428800S
usage:     0%

name:   mark
passwd: $1$WmPAy$xrW9rd7U3.EGMMKEpe63A0
clear passwd: password
uid:    0
gid:    0
        all services available
dir:       /home/vpopmail/domains/dom/1/mark
quota:     52428800S
usage:     0%

The shell/perl script should catch all user names / clear password and
list like this
username: xxxx   password: yyyy

Any help?




More information about the redhat-list mailing list