lost passwords

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

Moderators: Developers, Moderators

Post Reply
moneyluv
Posts: 2
Joined: Sat Oct 26, 2002 4:22 pm

lost passwords

Post by moneyluv »

Help!!!, we had some people work on our box to creates ome services and they b0rked our PHP/Apache and broke our Cacti install, after a month now we have finally got it working and we can log in as guest but we need the admin account back - please help me figure out how to retrieve it.

We also are trying to figure out how to get statistics for Eth0 like MRTG, any assistence in getting this setup would be fantastic. Right now we see graphs for Apache, MySQL, CPU, users etc, but we desperatly need to know the bandwidth on Eth0.

David
User avatar
ablyler
Posts: 40
Joined: Tue Mar 19, 2002 7:00 pm
Location: Ann Arbor, MI
Contact:

Post by ablyler »

The following sql code will set the admin password to blank. (CHANGE THE PASSWORD VIA THE CONSOLE AFTER YOU DO THIS!)

Code: Select all

UPDATE cacti.auth_users set password = '' WHERE username = 'admin';
Also use the SNMP Interfaces screen to create interface graphs.
Guest

Post by Guest »

Sorry to be a pain but do I run this command from?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

If unix, then alter as applicable:

mysql --user=root --password cacti
> UPDATE cacti.auth_users set password = '' WHERE username = 'admin';
> quit

Then you should be able to logon to Cacti without a password (I hope). Otherwise, what you need to do is install a fresh version of Cacti in another location and edit your system using MySQL Administrator or MySQL Control Center and copy and past the ID and password from the default system into the existing system. At that point, the passwords will match. The default password on a new system is "admin", "admin".

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

Who is online

Users browsing this forum: No registered users and 2 guests