Posted on 2006-06-09 19:50:18-07 by stupidscript
Installing and getting right password
After unpacking the tarball and running 'perl Makefile.PL' and 'make' I was getting an authentication failure in 'make test' Step 9. I checked 'test.pl' (@~ line 137) and noted:

$res = pam_authenticate($pamh, 0); #$res = pam_chauthtok($pamh);

I modified it to read:

#$res = pam_authenticate($pamh, 0); $res = pam_chauthtok($pamh);

and ran 'make test' again. This time I received prompts to set a new root password, which I set to the current password, after which Step 9 authorized.

I can only guess that Authen::PAM needs to set a new password as it has trouble reading current passwords, for some reason. Thoughts?

Linux 2.6.16-1.2069_FC4smp i386 PERL v.5.8.6 Authen::PAM 0.16
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.