ottsm
Posts: 11
Joined: Thu Feb 07, 2019 3:29 am

Default Password for Cacti not working

Tue Feb 26, 2019 1:45 am

Ok, I installed cacti on my Raspberry pi 3 B+ with raspbian installed. I used the ADD/REMOVE Software versus using the command line. I had never setup mysql before and when I looked at the /etc/mysql/dabian.cnf file it has root as the user and nothing that shows up as the password (I'm assuming it's not hidden somehow). When going to /ipaddress/cacti it went directly to the user/password, I tried admin/admin and root/<blank> and all other combinations including my pi password and other user names I setup in apache2 but I cant get in. Any ideas anyone?

ottsm
Posts: 11
Joined: Thu Feb 07, 2019 3:29 am

Re: Default Password for Cacti not working

Tue Feb 26, 2019 1:55 am

Figured it out from the following;
https://www.cacti.net/downloads/docs/html/faq.html

Had to do the following;

Code: Select all

sudo mysql -u root -p cacti
Then the following;

Code: Select all

update user_auth set password=md5('admin') where username='admin';

W. H. Heydt
Posts: 16185
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: Default Password for Cacti not working

Tue Feb 26, 2019 5:06 am

ottsm wrote:
Tue Feb 26, 2019 1:55 am

Code: Select all

sudo mysql -u root -p cacti
"sudo" is superfluous. You are explicitly telling mysql to use user root.

fbe
Posts: 714
Joined: Thu Aug 17, 2017 9:08 pm

Re: Default Password for Cacti not working

Tue Feb 26, 2019 7:07 pm

"sudo" is needed if you have an unmodified MariaDB installation. "-u root -p" is not needed in this case.

Return to “Beginners”