On Thursday 30 May 2002 08:55, [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));
$pw = 'fiddle'; $user = 'doo'; `echo "$pw" | passwd --stdin $user`; works for me. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Never say you know a man until you have divided an inheritance with him. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php