Date: Thu, 18 Nov 1999 13:51:00 +0200 To: 'Sheldon Hearn' <sheldonh@uunet.co.za>, "'Francis A. Vidal'" <francis@usls.edu> Cc: 'FreeBSD Questions' <freebsd-questions@FreeBSD.ORG> Subject: RE: change system password over web Message-ID: <1145CD545D54D211BCEB0060B067AD0618C125@RETINA> In-Reply-To: <1145CD545D54D211BCEB0060B067AD06190D67@RETINA>
next in thread | previous in thread | raw e-mail | index | archive | help
We had a problem like this at the office and sorted it out with an interesting solution. The main problem is you need to be root to do this, and apache refuses to run as root unless you fix it a little - and thats NOT recommended. So what we did is we made a php3 script which is the ACTION of our form. What we do is send a mail to root with cunning hidden headers and some pgp encryption of the username and new password. Then we have a procmail filter which looks for the hidden header, takes the encryption passes it through a php binary which decrypts the pgp and then executes something like this : #$1 = username #$2 = newpassword /usr/sbin/pw usermod $1 -h 0 <<EOF $2 EOF Weird solution - but it works! -----Original Message----- From: owner-freebsd-questions@FreeBSD.ORG [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Sheldon Hearn Sent: Thursday, November 18, 1999 11:40 AM To: Francis A. Vidal Cc: FreeBSD Questions Subject: Re: change system password over web On Thu, 18 Nov 1999 14:09:12 +0800, "Francis A. Vidal" wrote: > can you point me to a program so that users can change their passwords > over the web? thanks! If nobody else comes up with the exact answer you're looking for, I have a suggestion. Have a look at webmin in the ports tree. It doesn't seem to be geared toward use by users, but their edit_user.cgi is probably a good start if you know a bit of perl. Ciao, Sheldon. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message 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?1145CD545D54D211BCEB0060B067AD0618C125>