Hi,
I've been trying to have PHP generate an encrypted MD5 password, which i
want to include in the adduser shell command.
/usr/sbin/useradd -g www -s /bin/bash -p '$pass' user
the $pass has to be the MD5 encrypted password.
I have found usefull hint in the crypt function description on
php.net. I have managed to produce a MD5 encrypted version of a clear-text
password through the PHP function call. But after executing the useradd
command, I cannot login into the system.
What possibly went wrong ?
Cheers,
Bram van den Hout
bram@braminator.com