If you guys are getting this error on your Webmin log file /var/webmin/miniserv.error here’s how I solved the problem.
miniserv.pl started
Perl module Authen::PAM needed for PAM is not installed : Can't locate Authen/PAM.pm in @INC (@INC contains: /usr/libexec/webmin /usr/lib64/perl5/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/local/lib64/perl5/site_perl/5.10.0/x86_64-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib64/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl /usr/local/lib/perl5/site_perl /usr/lib/perl5/site_perl .) at (eval 10) line 1.
BEGIN failed--compilation aborted at (eval 10) line 1.
First off go to http://nik.pelov.name/Authen-PAM/ and download the latest Authen::PAM. At the time of this writing, the lastest one was Authen-PAM-0.16.
Log in as root.
su -
Then go to /tmp and place the file there.
cd /tmp
wget http://www.perl.com/CPAN/authors/id/N/NI/NIKIP/Authen-PAM-0.16.tar.gz
Next step would be extracting the contents of Authen-PAM-0.16.tar.gz.
tar xvzf Authen-PAM-0.16.tar.gz
After that, go to Authen-PAM-0.16 which is the directory that is created once you’ve extracted the contents of Authen-PAM-0.16.tar.gz.
cd Authen-PAM-0.16
We’ll then generate a make file.
perl Makefile.PL
If it returned no errors we can then proceed to executing the following commands.
make
make install
After that everything should be fine now. To check whether the module has been loaded or not do the following command.
perl -e 'use Authen::PAM; print "Installation succestul.\n"'
After that restart Webmin.
service webmin restart
If you look at your /var/webmin/miniserv.error this is what you should see if everything worked out fine.
restarting miniserv
Restarting
miniserv.pl started
PAM authentication enabled
Cool…You make my day
PAM test failed – maybe /etc/pam.d/webmin does not exist
Hi,
I get the following error when generating the make file
“C compiler can not create executables”
Any idea how I can solve this ?
Thanks
im getting the same errors as @sdelen any ideas ?
Thank you!
In centos you might have to install pam-devel
yum install pam-devel
so you can later compile the lib.
vim /etc/pam.d/webmin
and write:
auth include system-auth
…save, quit, restart webmin.
Log will say:
PAM authentication enabled
instead of :
PAM test failed – maybe /etc/pam.d/webmin does not exist
after successful installing Perl PAM i have got this error
“PAM test failed – maybe /etc/pam.d/webmin does not exist”
But thank you very much to neo . Him solution was perfect.
vim /etc/pam.d/webmin
and write:
auth include system-auth
…save, quit, restart webmin.
its work!
Your recipe worked perfectly first time for me on CentOS 5.6… thank you
[root@www Authen-PAM-0.17]# perl Makefile.PL
Checking if your kit is complete…
Looks good
checking for gcc… gcc
checking for C compiler default output file name… configure: error: C compiler cannot create executables
See `config.log’ for more details.
Error in configuring the Authen::PAM module.
What is this error? How to solve it?
Excellent – worked a treat. CentOS Linux 5.7