md5 passwords

Timothy Grant tjg at
Fri Mar 16 22:47:30 CET 2001

Can anyone explain to me how to use the md5 module to generate
passwords for the shadow password file?

I would like to be able to be able to os.system('useradd -p
md5/crypt username')

I can generate the required crypt hashes no problem, but can't
seem to figure out how to generate and md5 hash that looks
anything like what I see in /etc/shadow.

Stand Fast,

Timothy Grant                         tjg at
Red Hat Certified Engineer  
Avalon Technology Group, Inc.         <><       (503) 246-3630
>>>>>>>>>>>>>Linux, because rebooting is *NOT* normal<<<<<<<<<
>>>>This machine was last rebooted:  59 days  1:59 hours ago<<

More information about the Python-list mailing list