Bobcares

CyberPanel Disable 2FA | How To?

by | Sep 4, 2022

We can easily disable the 2FA in CyberPanel with this article. At Bobcares, with our Server Management Services, we can handle your CyberPanel issues.

Disable 2FA In CyberPanel

We typically use 2FA, also known as two-factor authentication, to make the accounts more secure. To sign in with 2FA, we require a password and a verification code. If we take away this additional security measure, we will only be prompted for a password when we log in. There could be several circumstances, though, where we need to disable 2fa for the account.

 

cyberpanel disable 2fa

In this article, we will see the methods to disable 2FA through the command line and GUI. Finally, we’ll also see a generally reusable code to disable 2FA.

Disable 2FA In CyberPanel- Command Line

1. Firstly, try connecting through SSH and entering the MySQL command line with these commands.

MYSQL_PWD=`cat /etc/cyberpanel/mysqlPassword` mysql -uroot

2. In order to enter the CyberPanel database, use the command:

use cyberpanel;

3. Now disable 2FA for the admin account with the following command:

UPDATE `loginSystem_administrator` SET `twoFA` = '0' WHERE `loginSystem_administrator`.`id` = 1;

4. The output is as follows:

[root@test ~]# MYSQL_PWD=`cat /etc/cyberpanel/mysqlPassword` mysql -uroot

Welcome to the MariaDB monitor. Commands end with ; or \g.

Your MariaDB connection id is 4526

Server version: 10.5.7-MariaDB MariaDB Server

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab, and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> use cyberpanel;

Reading table information for completion of table and column names

You can turn off this feature to get a quicker startup with -A

Database changed

MariaDB [cyberpanel]> UPDATE `loginSystem_administrator` SET `twoFA` = '0' WHERE `loginSystem_administrator`.`id` = 1;

Query OK, 0 rows affected (0.001 sec)

Rows matched: 1 Changed: 0 Warnings: 0

MariaDB [cyberpanel]>

5. Finally, clear the browser’s cache, then recheck.

Disable 2FA In CyberPanel- GUI

1. Firstly, visit the Security basics page.

2. Choose Additional security options.

3. Then set up two-step verification under Two-step verification to activate it, or select disable two-step verification to stop it.

4. Continue with the instructions.

Disable 2FA In CyberPanel- A Reusable Code

Here is a reliable method to complete this for the primary administrator using ID 1.

PASSWORD=$(cat /etc/cyberpanel/mysqlPassword);
DB_NAME=“cyberpanel”;
mysql -uroot -p${PASSWORD} “${DB_NAME}” -e “UPDATE loginSystem_administrator SET twoFA = ‘0’ WHERE id = 1;”

To verify whether 2FA in CyberPanel is enabled, we can use the code:

PASSWORD=$(cat /etc/cyberpanel/mysqlPassword);
DB_NAME=“cyberpanel”;
mysql -uroot -p${PASSWORD} “${DB_NAME}” -e “SELECT twoFA FROM loginSystem_administrator WHERE id = 1;”

[Looking for an answer to a different question? We are just a click away.]

Conclusion

In this article, we have provided the methods from our Tech team to disable 2FA in CyberPanel using the command line and GUI. Finally, we also provided a reusable code to disable 2FA.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.