md5 passwords

Timothy Grant tjg at exceptionalminds.com
Fri Mar 16 16:47:30 EST 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,
    tjg.

Timothy Grant                         tjg at exceptionalminds.com
Red Hat Certified Engineer            www.exceptionalminds.com
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