Re: Change Password script
| From: | enthalpy | Date: | Tue, 06 Feb 2001 21:42:04 +0000 |
| Subject: | Re: Change Password script | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-38434@lists.php.net to get a copy of this message | ||
i figured a better way to do it.. ill just have to run a cron that check
a flat file thats encrypted.
<-----CoreComm-Internet-Services--http://core.com/----->
(Jon Marshall CoreComm Services Chicago)
(jonathon.marshall@core.com Systems Engineer II)
(enthalpy@core.com Network Operations)
<-----Enthalpy.org------------http://enthalpy.org/----->
(enthalpy@enthalpy.org The World of Nothing)
<------------------------------------------------------>
On Sat, 3 Feb 2001 mwaples@waples.net wrote:
> enthalpy wrote:
> >
> > anyone have example code of a change password script in php?
> >
> >
> > <-----CoreComm-Internet-Services--http://core.com/----->
> > (Jon Marshall CoreComm Services Chicago)
> > (jonathon.marshall@core.com Systems Engineer II)
> > (enthalpy@core.com Network Operations)
> >
> > <-----Enthalpy.org------------http://enthalpy.org/----->
> > (enthalpy@enthalpy.org The World of Nothing)
> > <------------------------------------------------------>
> >
> > --
> this is for freebsd - use at your own risk -
> best used as a php shell script run by root
>
>
> $newpassword = "veryinsecure";
> $fp = popen("/usr/sbin/pw usermod -n username -h passwd", "w");
>
> fputs($fp, "$newpassword");
> pclose($fp)
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>