Would you like to learn how to recover the Cacti admin password? In this tutorial, we are going to show you how to use the Cacti password recovery procedure to change the password of the admin user using the command-line of a computer running Ubuntu Linux.

• Ubuntu 19.04
• Cacti 1.2.3

What is Cacti?

Cacti is an open-source platform for data monitoring that is completely PHP driven.

On the Web interface, users are able to use Cacti as a frontend to RRDtool, create Graphs and populate them with data stored in MySQL.

Cacti also has SNMP support for users to create graphs in order to perform network monitor.

Cacti Playlist:

On this page, we offer quick access to a list of videos related to Cacti installation.

Don’t forget to subscribe to our youtube channel named FKIT.

Cacti Tutorial:

On this page, we offer quick access to a list of Cacti tutorials

Tutorial – Cacti Password Recovery

First, we need to access the MySQL server as root user.

Use the following command to install the required packages.

# apt-get update
# apt-get install mysql-client

Use the following command to login the MySQL server as root.

# mysql -u root -p

Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 17226

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

mysql>

The system will ask you to enter the root user MySQL password.

After entering the password, use the following MySQL commands to reset the Cacti admin user password.

mysql> use cacti;
mysql> update user_auth set password=md5(‘admin’) where username=’admin’;
mysql> quit;

In our example, we changed the admin user password to admin.

Open your browser and enter the IP address of your web server plus /cacti.

In our example, the following URL was entered in the Browser:

• http://35.162.85.57/cacti

On the login screen, use the default username and default password.

• Username: admin
• Password: admin

Cacti login

Congratulations! You successfully recovered the password of the Cacti admin user.