Two-factor authentication (2FA) helps to improve the security of the login of cPanel/WHM and this feature Needs two forms of identification: 1) Your password 2) A generated security code.

Only root user can enable 2FA. Once the 2FA is enabled, you have to enter the security code generated from the corresponding app on your mobile to login and without a security code, you can’t login.

Remove two-factor authentication (2FA)

There are two ways to disable 2FA from a cPanel server. You can either done via command line or else from WHM.

1. Run the below command as root user to disable 2FA via terminal: whmapi1 twofactorauth_disable_policy .

If it helps, access the server remotely as root user and follow the below steps:

cd /var/cpanel/authn/twofactor_auth

and rename the .json files to something else or simply run the below command :

mv -v /var/cpanel/authn/twofactor_auth/tfa_userdata.json{,.bak}; echo ‘{}’ >> /var/cpanel/authn/twofactor_auth/tfa_userdata.jso

2. Login to WHM and then follow the below steps :

  1. Log into WHM
  2. Click on Two-Factor Authentication
  3. Click on “Manage My Account”
  4. Click on Remove Two-factor Authentication

Hope this article is helpful.

ServerAdminz provides Outsourced 24/7 Technical Support, Remote Server Administration, Server Security, Linux Server Management, Windows Server Management and Helpdesk Management to Data centers, Hosting companies and ISPs around the world. We specialize in Extended Server Security, Server Hardening, Support of Linux/UNIX/Windows servers, products and services.

ServerAdminz is a server support company specialized in Outsourced 24/7 Web Hosting Support, Remote Infrastructure Management, NOC, Cloud and Enterprise Security Services. With over 10+ of years of experience in working with major Data Centers and ISPs with 130+ experienced technicians, we continue to manage more than 49,000 servers from 85+ countries and has bagged 5 international awards.

If you have any queries on how to disable two-factor authentication on a cPanel server, share your thoughts and our representative will get back to you[/fusion_text][two_third last=”yes” spacing=”yes” center_content=”no” hide_on_mobile=”no” background_color=”” background_image=”” background_repeat=”no-repeat” background_position=”left top” border_position=”all” border_size=”0px” border_color=”” border_style=”” padding=”” margin_top=”” margin_bottom=”” animation_type=”” animation_direction=”” animation_speed=”0.1″ class=”” id=””]