33

zabbix使用总结:zabbix密码修改

 5 years ago
source link: https://www.linuxprobe.com/zabbix-zabbix-passwd.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
关于zabbix 的用户密码的修改分两种情况,一种具有管理员权限,而且知道原密码,直接在web界面上进行更改;另一种情况是,管理员密码忘记,无法进行权限认证进入web界面的情况。
一、正常更改用户密码

登录进入zabbix 的web界面,依次点击 administration ----- Users ------ 选定用户 -------- 在用户界面找到change password 选项,如下图:

按提示输入变更的密码并进行再次确认输入,最后save保存,即可完成密码的变更。

二、忘记密码,重置密码

此方法是通过进入数据库更改密码,操作步骤如下:

查看数据库
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| zabbix |
+--------------------+
5 rows in set (0.00 sec)
进入数据库
mysql> use zabbix;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
查看数据有那些表
mysql> show tables;
查看是否存放用户、密码信息
mysql> select * from users;
更改密码为zabbix
mysql> update users set passwd=md5("zabbix") where userid='1';
Query OK, 0 rows affected (0.01 sec)
Rows matched: 1 Changed: 0 Warnings: 0

zabbix 的用户密码是使用md5的方式进行的加密 ,上面的mysql语句执行后,admin 管理员用户的密码就会改为zabbix 。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK