Zabbix Forgot login Password

Source: Internet
Author: User
Tags openssl md5

A lot of small partners because of too many passwords, or due to the failure of the test machine to forget the password, the following method is expected to solve the problem of small partners.

1. Log in to the database first, select the Zabbix database, and view the Admin user.

Mysql> use zabbixreading table information for completion of table  and column namesyou can turn off this feature to get a  quicker startup with -ADatabase changedmysql> select * from  users\g*************************** 1. row ***************************         userid: 1         alias: admin           name: Zabbix        surname: Administrator        passwd:  e2798af12a7a0f4f70b4d69efbc25f4d           url:       autologin: 1    autologout: 0           lang: en_us       refresh: 30           type: 3         theme:  defaultattempt_failed: 0    attempt_ip: 210.51.19.2 attempt_clock:  1421286613 rows_per_page: 50

From the query results you can see that the admin password is a string of encrypted MD5 value, because we just need to replace the MD5 value.

2. Generate a MD5 value for a string.

Echo-n Redhat|openssl MD5 (stdin) = e2798af12a7a0f4f70b4d69efbc25f4d

Adding the-n parameter here is a guaranteed value unique

3. Replace the password of admin

Mysql> Update users set passwd= ' e2798af12a7a0f4f70b4d69efbc25f4d ' where userid= ' 1 '; Query OK, 1 row affected (0.01 sec) Rows matched:1 changed:1 warnings:0

4. Login Test

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/58/A4/wKioL1S3IcuDyDyYAAFgC5hHcG4705.jpg "title=" 1.png " alt= "Wkiol1s3icudydyyaafgc5hhcg4705.jpg"/>

5. The modification is complete.

The method above is implemented by updating the database.

This article is from "Alan Wake" blog, please make sure to keep this source http://alanwake.blog.51cto.com/6881848/1604165

Zabbix Forgot login Password

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.