using stdin in php
| From: | rdkurth at starband dot net | Date: | Thu, 30 May 2002 00:55:57 +0000 |
| Subject: | using stdin in php | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-99821@lists.php.net to get a copy of this message | ||
Could somebody look at this a tell me way it does not set the
password correctly. I know it has to run at root this has been
handled.
I think my problem is with --stdin. It sets a password but it does not
set it correctly
$cmd = "echo $newpassword | passwd --stdin $user";
return(exec($cmd));
--
Best regards,
rdkurth mailto:rdkurth@starband.net