>> On 8 Dec 2002 07:22:39, Jerry M. Howell II <[EMAIL PROTECTED]> said:
> I used the useradd -p and it doesn't insert the passwd like it > should I should see something like $1$blahhblahhblahh but it > doesn't do this, if I manualy insert it it works fine but it looks > like print `/usr/sbin/useradd "$username" -p "$pwd"`; screws it up You've been using the wrong hashing algorithm, I'm afraid. crypt() isn't used in modern UNIX password files, md5 is. I think your code will start working if you use: use Crypt::PasswdMD5; $pass = unix_md5_crypt($input_pass,$salt); Also, your double-quotes in the useradd command look redundant. Try removing them, if it still doesn't work. They may been being processed as part of the username/password. Hope this helps, - Chris. -- $a="printf.net"; Chris Ball | chris@void.$a | www.$a | finger: chris@$a -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]