Lost Password
Moderators: Developers, Moderators
Lost Password
Hello,
I've recently taken over our Cacti system but can only log on as guest. The admin/root password has been lost. Can you tell me how to recover or reset this?
Cacti was set-up so you browse to its ip and log on from the web interface.
I've recently taken over our Cacti system but can only log on as guest. The admin/root password has been lost. Can you tell me how to recover or reset this?
Cacti was set-up so you browse to its ip and log on from the web interface.
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Please see your other post.
TheWitness
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Unhelpful reply.
Please post a link to this in this thread as this is the first hit on a google search for "reset cacti password".
To save people having to go to the link, this is what it says:
Connect to MySQL server with user root (or any which has permissions on cacti database):
Run SQL query to set the password to "NEWPASSWORD" (replace this with your pass):
Good luck!
P.S.: Also first site I got onto from Google!
Connect to MySQL server with user root (or any which has permissions on cacti database):
Code: Select all
shell> mysql -u root -p cacti
Code: Select all
mysql> update user_auth set password=md5('admin') where username='admin';
P.S.: Also first site I got onto from Google!
Re: Lost Password
I followed the instruction as mention above but still can not access Cacti. If I put incorrect password, I would get invalid password. But when I tried to login with password that I have just changed to, I will get login screen but without any error.
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Lost Password
Either /var/ is full, or PHP does not have permissions to add session files.
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Re: Lost Password
Hi Witness, I have checked my /var and it's not full. How would I fix this issue?
Thanks
Thanks
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Lost Password
Find out why session files are not able to be written. Review apache's php.ini file for the session location. Typically, if you login with good creds, and you get kicked back out to the login prompt, it means that the apache user can not write to the php session directory or it's full.
TheWitness
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Re: Lost Password
Thanks Witness, that fixed my problem.
Re: Lost Password
Hi,
I am a new user to caci so I apologise if my question is silly.
I was able to get the first time wizard to come up, but I am not able to login.
When I run the command to reset the password I get the following message:
I assume that this means the row was not updated.
I am also logging into the caci page, but failing to proceed to the next page.
I have my session information in /tmp
I am seeing session files get setup in /tmp.
Any ideas where to look now?
Thank you
DJ
I am a new user to caci so I apologise if my question is silly.
I was able to get the first time wizard to come up, but I am not able to login.
When I run the command to reset the password I get the following message:
Code: Select all
mysql> update user_auth set password=md5('admin') where username='admin';
Query OK, 0 rows affected (0.00 sec)
Rows matched: 1 Changed: 0 Warnings: 0
I am also logging into the caci page, but failing to proceed to the next page.
I have my session information in /tmp
I am seeing session files get setup in /tmp.
Any ideas where to look now?
Thank you
DJ
Re: Lost Password
I thought I was supposed to be using one of the passwords I setup earlier in the setup / configuration steps.
I was able to login with admin/admin as per the defaults.
Thank you.
I was able to login with admin/admin as per the defaults.
Thank you.
Re: Lost Password
Hi,
I lost my password to cacti web gui. Hence I reset the username and password as per this post but by providing the database name cacti(I guessed the name). Before resetting the password I got Invalid username and password. But after resetting I don't get that error message but it the first login page doesn't seem to load. Can you help please?
Thanks
I lost my password to cacti web gui. Hence I reset the username and password as per this post but by providing the database name cacti(I guessed the name). Before resetting the password I got Invalid username and password. But after resetting I don't get that error message but it the first login page doesn't seem to load. Can you help please?
Thanks
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: Lost Password
The correct database name and credentials for logging into mysql should be taken from include/config.php.
Then, you may change the user "admin" as required
R.
Then, you may change the user "admin" as required
R.
Who is online
Users browsing this forum: No registered users and 3 guests