Webmin fails to install Authen::OATH - 2 Factor Authentication (Google 2FA/MFA)

Problem / Symptoms

Depending on the type of server install, if you try to activate/install 2FA (Google 2FA) in Webmin, you may get an error that the Perl module Authen::OATH failed to install.

Solution

(RHEL-based distros)

SSH to your server or use the built-in CLI. Install CPAN:

yum -y install perl-CPAN

Install the following modules in order:

perl -MCPAN -e "install Test::Moose"
perl -MCPAN -e "install Types::Standard"
perl -MCPAN -e "install Moo"
perl -MCPAN -e "install Authen::OATH"

Now you should be able to activate Google 2FA from Webmin.

 

 

Article Information
Did you find this article helpful?