当前位置:网站首页>ZABBIX administrator forgot login password

ZABBIX administrator forgot login password

2022-07-24 14:55:00 Bandiaozi refining whole stack

zabbix The administrator account forgot the login password

 Insert picture description here
1、 Sign in zabbix-server The server
Get into mysql
The database used by this machine is mariadb No password , If it is mysql be , log on as mysql -uroot -p123456; -u Followed by the user name -p Followed by the password

[[email protected] ~]# mysql

2、 Get into zabbix library

MariaDB [(none)]> use zabbix;

3、 Get into mysql Database future query users surface (passwd by MD5 encryption )

MariaDB [zabbix]> select userid,alias,passwd from users;
+--------+------------+--------------------------------------------------------------+
| userid | alias      | passwd                                                       |
+--------+------------+--------------------------------------------------------------+
|      1 | Admin      | $2y$10$DN5QNswJysi73cWhiYI.o.Q.awb9zafRWCZD6wK4odU.4n2bvg6W. |
|      2 | guest      | $2y$10$89otZrRNmde97rIyzclecuk6LwKAsHN0BcvoOKGjbT.BwMBfm7G06 |
|      3 | zabbixuser | $2y$10$Is8jDVyQjcoWdJqjQeEuqOiEvmvkLMb2/IjEo1n38abBdblpD11rm |
+--------+------------+--------------------------------------------------------------+
3 rows in set (0.00 sec)

4、 ⽣ become ⼀ New passwords MD5,admin It's a password ( Exit database )

 [[email protected] ~]# echo -n Admin | openssl md5
(stdin)= e3afed0047b08059d0fada10f400c1e5

5、 Enter the database again , And enter zabbix Inside the warehouse

[[email protected] ~]# mysql
MariaDB [(none)]> use zabbix;

6、 then update Table data ,userid=1 This ⽤ Household

MariaDB [zabbix]> update users set  passwd='e3afed0047b08059d0fada10f400c1e5' where userid = '1';
Query OK, 1 row affected (0.00 sec)
Rows matched: 1  Changed: 1  Warnings: 0

7、 Refresh and reload the permission table

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

8、 Log in again , The password is the initial password ;( And the interface prompts that the user has updated )
 Insert picture description here
Get it done

原网站

版权声明
本文为[Bandiaozi refining whole stack]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/205/202207241451247801.html