NETWORKSTIP Networking CCNA,Centos,Ubuntu,Sql,

Made By Muhammad Nafees

Breaking

Sunday 18 November 2018

How To Enable Two Factor Authentication in Virtualmin

How To Enable Two Factor Authentication in Virtualmin


  • Click on the Webmin section
  • Select the Webmin option
  • Select the Webmin Configuration module


  •  Click on the Two-Factor Authentication module
 
  • Select your authentication provider
    1. For the purpose of this article I will be selecting Google Authenticator
  • Click the Save button



When using Google Authenticator a QR code will display that you can scan using the Authenticator app on your smartphone.
if there is any error follow blew steps

Install Perl Packages

Using SSH (shell), enter these commands one by one,
  • yum install gcc
  • yum install 'perl(Moose)'
  • yum install 'perl(Digest::HMAC)'
  • yum install 'perl(Module::Build)' 
This will install all required perl packages for Source build and supporting WebMin Two Factor Authentication.

Note: If you get error “No package perl(Moose) available” then please go through this short guide to install perl-Moose from tar package.

Pull Authen::OATH source package and Unzip it

Now, you must pull fresh package from CPAN,
wget http://www.cpan.org/authors/id/S/SI/SIFUKURT/Authen-OATH-v1.0.0.tar.gz
 
 Unzip it using,

tar -xvf Authen-OATH-v1.0.0.tar.gz

Extract, Build & Install Authen::OATH Perl Package

Change the directory to newly extracted folder. In my case, I issued following command,
cd Authen-OATH-v1.0.0
 
Enter these commands one by one,

  • perl Build.PL
  • ./Build
  • ./Build test
  • ./Build install

Restart WebMin – Very Important.

service webmin restart

 

No comments:

Post a Comment