having some problems adding users to linux from a php script:
I have a PHP script that is triggered by a CRON job having root rights.
This scripts is feeded with usernames from a database and has
to add the users to the local users on the webserver via
useradd [accountname] -p [passwordhash] -s /bin/false -m
the problem is the second parameter [passwordhash]
how to generate a valid password hash in PHP and how to
give it to useradd via PHP or in other words:
HOW TO ADD A USER/PASSWORD FROM A PHP SCRIPT???