Date: 12 Apr 98 18:50:37 +0100 From: leifn@image.dk (Leif Neland) To: freebsd-questions@FreeBSD.ORG Subject: Re: password change via the web?! Message-ID: <b0a_9804121951@swimsuit.swimsuit.roskildebc.dk>
next in thread | raw e-mail | index | archive | help
At 11 Apr 98 21:33:32 "Three goddesses, Venus figures" wrote regarding Re: password change via the web?! >> Such a script would be very hard to make secure, because to change a >> password, you have to run with root's permissions. g> Actually, you could use a perl/expect combo to do this without g> running as root and without hacking the passwd code. Something like this script in pseudolanguage? # call script with parameters user old_password new_password echo $2 | su - $1 echo $2\n$3\n$3\n|passwd $1 exit expect should be able to do this. Leif Neland leifn@internet.dk --- |Fidonet: Leif Neland 2:234/49 |Internet: leifn@image.dk To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b0a_9804121951>