Hello everyone,
I encountered a serious issue with my Zabbix setup and need some help to resolve it.
I ran the following SQL query on my Zabbix database, which caused me to be unable to log in to the frontend even as a superadmin:
UPDATE zabbixdb.users AS a INNER JOIN zabbixdb.users AS b ON b.username='guest' SET a.passwd = b.passwd;
The intention was to synchronize passwords, but it seems to have caused some unintended issues.
Current Status:
Thanks
I encountered a serious issue with my Zabbix setup and need some help to resolve it.
I ran the following SQL query on my Zabbix database, which caused me to be unable to log in to the frontend even as a superadmin:
UPDATE zabbixdb.users AS a INNER JOIN zabbixdb.users AS b ON b.username='guest' SET a.passwd = b.passwd;
The intention was to synchronize passwords, but it seems to have caused some unintended issues.
Current Status:
- Password Update: This query changed the passwords for all users to the password of the guest user. Now, I can't log in as Admin or any other user.
- Database Integrity Check:
- I have checked the users table, and it appears that only the guest user's password hash is present, while other users' passwords might have been erased.
SELECT username, passwd FROM zabbixdb.users; - Tried Solutions:
- I attempted to reset the Admin password directly in the database using MD5 hash:
UPDATE zabbixdb.users SET passwd=md5('NewAdminPassword') WHERE username='Admin';- After updating the password, I restarted the Zabbix services:
- However, I'm still unable to log in with the new password.
- Additional Attempts:
- I checked for the integrity of the users table and attempted to create a new admin user, but faced multiple errors related to foreign key constraints and missing values.
Thanks
Comment