changing unix password via www python script
Andrew MacIntyre
andymac at bullseye.apana.org.au
Sat Jan 13 02:04:36 EST 2001
On Fri, 12 Jan 2001, Vesemir wrote:
> How to change unix account password by python script?
> I want to write www script, controled by form.
Its clumsy and trouble prone, but what I did was use one of the expect
modules (PyExpect?- can't remember for sure), and telnetted to localhost
and executed the password command. This was in a Solaris environment,
where the passwd program refused to deal with input from a pipe.
I'm open to better ways.
--
Andrew I MacIntyre "These thoughts are mine alone..."
E-mail: andrew.macintyre at aba.gov.au (work) | Snail: PO Box 370
andymac at bullseye.apana.org.au (play) | Belconnen ACT 2616
andymac at pcug.org.au (play2) | Australia
More information about the Python-list
mailing list