Does createAndPromote.php still work?
$ php createAndPromote.php Fff zzz
Creating and promoting User:Fff...done.
But mysql shows
user_name: Fff user_real_name: user_password: user_newpassword: user_newpass_time: 20071226000912
and indeed the new user cannot login with the password or no passwd at
One needs to use changePassword.php as an extra step.
P.S., if one gives fff, Fff is created, but the message on stdout
doesn't reflect that.
By the way, you might take this opportunity to make a more general
command that can create regular users too.
while read user email
password=$RANDOM php createAndPromote.php $user $password && echo Dear $user, your initial password is $password on $wiki| mail -s $wiki\ account $email
done < classmates