Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Method of resetting Zabbix password (in one step)

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Problem description

Because we do not log in to Zabbix by typing the account password for a long time, it is easy to forget the password of admin, while the password of zabbix users is encrypted and stored through md5, so we can reset the new password directly in the database by converting the corresponding md5.

Solution method

1. Connect to the database

[zhuxiaoshuai@zabbix-server ~] # mysql-uroot-pzhuxiaoshuaiqiu # #-u is the user name, followed by a password

2. Query the users table after entering the mysql database

MariaDB [mysql] > use zabbix;MariaDB [zabbix] > show tables;MariaDB [zabbix] > select * from users;MariaDB [zabbix] > select userid,alias,passwd from users

3. Generate a new admin password of MD5 through Linux

[zhuxiaoshuai@zabbix-server ~] # echo-n zhuxiaoshuai | openssl md5 (stdin) = cce78f045146e7dbb2c7d0df900dcfb3

4. Update update table data, the user of userid=1 (that is, admin user)

MariaDB [zabbix] > update users set passwd='cce78f045146e7dbb2c7d0df900dcfb3' where userid = '1query OK, 1 row affected (0.01 sec) Rows matched: 1 Changed: 1 Warnings: 0

5. Refresh the reload permissions table

MariaDB [zabbix] > FLUSH PRIVILEGES;Query OK, 0 rows affected (0.03 sec)

Summary

The above is the editor to introduce to you the method of resetting the Zabbix password (one step in place), I hope it will be helpful to you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report