I have forgotten my cacti admin password
Moderators: Developers, Moderators
I have forgotten my cacti admin password
hi
I have forgotten my cacti admin password.
howto reset it ?
regards
chris
I have forgotten my cacti admin password.
howto reset it ?
regards
chris
Maybe this will help you
Hi,
you can connect to your cacti database using something like
maybe you need to use the and flag. When you are connected you can do the following to change your password:
or use
to erase it. After that you can assign a new password with "User Management" from the Utilities menu.
HTH,
Lars
you can connect to your cacti database using something like
Code: Select all
mysql cacti
Code: Select all
-u
Code: Select all
-p
Code: Select all
update user_auth set password=Password('yournewpassord') where username='admin';
Code: Select all
update user_auth set password='' where username='admin';
HTH,
Lars
hi
I tried, but it doesn't work:
mysql> update user_auth set password=Password('password') where username='admin';
ERROR 1146: Table 'cacti.user_auth' doesn't exist
mysql> update user_auth set password='password' where username='admin'; ERROR 1146: Table 'cacti.user_auth' doesn't exist
kindly regards
chris
I tried, but it doesn't work:
mysql> update user_auth set password=Password('password') where username='admin';
ERROR 1146: Table 'cacti.user_auth' doesn't exist
mysql> update user_auth set password='password' where username='admin'; ERROR 1146: Table 'cacti.user_auth' doesn't exist
kindly regards
chris
Hello again,
what is the output of, maybe you are using a different version of cacti. I'm using cacti-0.8. I never used earlier versions, because I just discovered cacti.
I just grabbed the sources of an older version (0.6.8a)and there the table is called
Maybe you could try this.
Greetings from Germany,
Lars
what is the output of
Code: Select all
mysqlshow cacti
I just grabbed the sources of an older version (0.6.8a)and there the table is called
Code: Select all
auth_users
Greetings from Germany,
Lars
hi
linux:~ # mysqlshow cacti -u root -p
Enter password:
Database: cacti
+-----------------------+
| Tables |
+-----------------------+
| auth_acl |
| auth_areas |
| auth_graph |
| auth_graph_hierarchy |
| auth_hosts |
| auth_log |
| auth_sections |
| auth_users |
| def_cdef |
| def_cf |
| def_colors |
| def_ds |
| def_graph_type |
| def_image_type |
| graph_hierarchy |
| graph_hierarchy_items |
| lnk_ds_rra |
| lnk_rra_cf |
| menu |
| menu_category |
| menu_items |
| rrd_ds |
| rrd_ds_cdef |
| rrd_ds_cdef_item |
| rrd_graph |
| rrd_graph_item |
| rrd_rra |
| settings |
| settings_graphs |
| settings_tree |
| snmp_hosts |
| snmp_hosts_interfaces |
| src |
| src_data |
| src_fields |
| version |
+-----------------------+
linux:~ # mysqlshow cacti -u root -p
Enter password:
Database: cacti
+-----------------------+
| Tables |
+-----------------------+
| auth_acl |
| auth_areas |
| auth_graph |
| auth_graph_hierarchy |
| auth_hosts |
| auth_log |
| auth_sections |
| auth_users |
| def_cdef |
| def_cf |
| def_colors |
| def_ds |
| def_graph_type |
| def_image_type |
| graph_hierarchy |
| graph_hierarchy_items |
| lnk_ds_rra |
| lnk_rra_cf |
| menu |
| menu_category |
| menu_items |
| rrd_ds |
| rrd_ds_cdef |
| rrd_ds_cdef_item |
| rrd_graph |
| rrd_graph_item |
| rrd_rra |
| settings |
| settings_graphs |
| settings_tree |
| snmp_hosts |
| snmp_hosts_interfaces |
| src |
| src_data |
| src_fields |
| version |
+-----------------------+
Last try
Hey Chris,
have you also tried the following?
Your password is stored encrypted in the table auth_users and not in plain text.
If this isn't working either you can still try
This will set the password to an empty string and you can leave the password field blank when logging into cacti.
If this isn't working for you I'm stumped and have no further idea.
Lars
have you also tried the following?
Code: Select all
update auth_users set password=Password('password') where username='admin';
If this isn't working either you can still try
Code: Select all
update auth_users set password='' where username='admin';
If this isn't working for you I'm stumped and have no further idea.
Lars
:-(
Hi!
Maybe someone else can help you with your problem. I tested both approaches and for me they worked like a charm. I used it after the first install of cacti because I wasn't aware of the default password for admin and so I simply changed it from the mysql prompt.
Good luck,
Lars
Maybe someone else can help you with your problem. I tested both approaches and for me they worked like a charm. I used it after the first install of cacti because I wasn't aware of the default password for admin and so I simply changed it from the mysql prompt.
Good luck,
Lars
The suggestions above will work for Cacti 0.6.x. You can use the following SQL to reset your admin password in 0.8:
Make sure to replace NEWPASSWORD with your desired admin password. Let me know if you are still having problems logging in after running this.
-Ian
Code: Select all
update user_auth set password=MD5('NEWPASSWORD') where username='admin';
-Ian
Here is how to reset your admin password to 'admin' in 0.6.8a:
-Ian
Code: Select all
update auth_users set password='43e9a4ab75570f5b' where username='admin';
Who is online
Users browsing this forum: No registered users and 4 guests