The title says it all. Its zabbix 1.8. Thank you. I know it must be a database command, but, not familiar enough with mysql to do it.
Ad Widget
Collapse
how to reset the Admin password without gui access
Collapse
X
-
In the user table set the password for the admin user to blank. Then you can log in without a password, however you will need/want to change it to something with a password quickly. :-DRHCE, author of zbxapi
Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM
-
Hi
Our sysadmin left and I have to get into zabbix and try to get access to the super user
In the user table I set the password for the admin user to blank
update users set passwd='' where name='Zabbix';
mysql> select name, alias, passwd from users where name='Zabbix';
+--------+-------+--------+
| name | alias | passwd |
+--------+-------+--------+
| Zabbix | Admin | |
+--------+-------+--------+
I restarted zabbix : ./zabbix_agentd stop; ./zabbix_agentd start
However, when trying to log in, I get
ERROR: Login name or password is incorrect
I would appreciate any help. Is there some logging I can turn on to see what is happening
Thank youComment
-
Fortunately for me I was just at install so I dropped the database and re-created it from scratch.
However, Mysqladmin makes sure the password is encrypted. I using RHEL5, with 5.0 of mysql.
From the linux shell as the root user,
mysqladmin -u <user> password '<new_password>'
mysqladmin -u <user> -h <host> password '<new_password>'Comment
-
Comment
-
update zabbix.users set passwd=md5('mynewpassword') where alias='Admin';Comment
-
aic, have you tried any of the above?RHCE, author of zbxapi
Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM
Comment
-
on a sidenote: shouldn't the password be salted in the database?Free and Open Source Zabbix Templates Repository | Hosted Zabbix @ Tribily (http://tribily.com)Comment
-
Hi,
I use oracle database,and use update users set passwd=hash(password) where name='zabbix';
but oracle error is not hash,pls help,how are you doing?THKS!Comment
Comment