Lost Password

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
LostBoy

Lost Password

Post by LostBoy »

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.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Please see your other post.

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?
peyote
Posts: 2
Joined: Sat Feb 19, 2005 8:46 am

Unhelpful reply.

Post by peyote »

Please post a link to this in this thread as this is the first hit on a google search for "reset cacti password".
mick
Posts: 1
Joined: Mon Apr 25, 2005 9:11 pm

Post by mick »

I agree - I've just come here from Google looking how to recover my cacti password.
helper
Posts: 1
Joined: Tue May 31, 2005 1:14 pm

Post by helper »

TomA-R
Posts: 1
Joined: Mon Dec 21, 2009 11:03 pm

Post by TomA-R »

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):

Code: Select all

shell> mysql -u root -p cacti
Run SQL query to set the password to "NEWPASSWORD" (replace this with your pass):

Code: Select all

mysql> update user_auth set password=md5('admin') where username='admin';
Good luck!

P.S.: Also first site I got onto from Google!
termite
Posts: 17
Joined: Mon Aug 17, 2009 1:29 pm

Re: Lost Password

Post by termite »

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.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Lost Password

Post by TheWitness »

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?
termite
Posts: 17
Joined: Mon Aug 17, 2009 1:29 pm

Re: Lost Password

Post by termite »

Hi Witness, I have checked my /var and it's not full. How would I fix this issue?

Thanks
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Lost Password

Post by TheWitness »

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
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?
termite
Posts: 17
Joined: Mon Aug 17, 2009 1:29 pm

Re: Lost Password

Post by termite »

Thanks Witness, that fixed my problem.
ackman
Posts: 2
Joined: Wed Nov 21, 2012 8:47 am

Re: Lost Password

Post by ackman »

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:

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 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
ackman
Posts: 2
Joined: Wed Nov 21, 2012 8:47 am

Re: Lost Password

Post by ackman »

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.
viclux
Posts: 1
Joined: Wed Feb 13, 2013 12:00 pm

Re: Lost Password

Post by viclux »

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
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Lost Password

Post by gandalf »

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.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests