Custom adduser function...

Channel21 Python Team python at channel21.com
Wed May 10 21:37:56 CEST 2000


if I pass it the crypted passwd, how do I know what to salt it with? 

> ----------
> From: 	Jeff Bauer[SMTP:jbauer at rubic.com]
> Sent: 	Wednesday, May 10, 2000 2:49 PM
> To: 	Channel21 Python Team
> Cc: 	'python-list at python.org'
> Subject: 	Re: Custom adduser function...
> 
> Channel21 Python Team wrote:
> > for some reason, the -p option does not actually 
> > set the password to what we think it is. I.E., if 
> > you run "/usr/sbin/useradd -p passwordval usernameval"
> > it doesn't actually set the password to passwordval...
> 
> Ah, the useradd command wants the encrypted [crypt(3)]
> password passed in as an argument.  You can modify
> the earlier code to pass in the encrypted password
> or create the account without a password and use
> os.popen to set it via the passwd command.
> 
> -Jeff
> 




More information about the Python-list mailing list