On Wed, 29 May 2002 [EMAIL PROTECTED] wrote: > 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));
In order to feed to stdin on another process, I think you need to use this: http://php.net/popen miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php