[SOLVED] Stupid User has locked me out of my own CACTI!

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
Primüs
Posts: 10
Joined: Wed Oct 10, 2007 8:05 pm

[SOLVED] Stupid User has locked me out of my own CACTI!

Post by Primüs »

Hello,

I have a cacti installation on a linux based server. I have my admin account which never used, my account with admin priv's then user accounts. Now one of the user accounts happened to know my admin pass and has gone in and deleted all accounts apart from admin, and changed the password to something i do not know.

I have been into the SQL to have a look to see if i can recreate myself a user the manual way, however the password field uses an encryption of somesort which i do not know and cant find where to find out. All i want is the 'encryption' key to make the password just password so i can update the SQL entry and re-gain access to my install.

Thanks,

Primus
Primüs
Posts: 10
Joined: Wed Oct 10, 2007 8:05 pm

Post by Primüs »

i have fixed my own problem,

I realised its using the MD5 sum, and used a SQL query like the following:

UPDATE user_auth SET password=MD5("<password here>") WHERE id=1 (for the admin account :p)

So anyone who trusts users like me and gets stooged, thats how to fix :)
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Stop trusting your users with Admin rights... :o
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
bilbus
Cacti User
Posts: 57
Joined: Sat Sep 15, 2007 2:38 pm

Post by bilbus »

I hope that user is now fired.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests