The problem is in defining the password. Look at the newusers batch file. (/usr/sbin/newusers I believe.)
Note, this is dangerous, you probably shouldn't do it, might make your machine hackable etc...
:-)
Note you'll need to make a copy of it that only your webserver can run, and chmod 4775 it with ownership set to root as well.
Very dangerous, this is, says Yoda...