是否有一种方法可以重置监视应用程序带状隆起的管理密码而不重新安装应用程序?我无法在文档中或在googling中找到这些信息。
发布于 2012-03-07 17:33:24
尝试查看/etc/apache2/conf.d.d/zoneminder.conf,我怀疑密码是否在纯文本中,但值得一试。
快速查看之后,它确实使用了sql后端,用户/密码可能就在其中。由于安装状态是为sql使用不同的密码,所以您可以尝试进入其中,尽管密码(希望如此)是加密的。您可以使用类似于http://packages.ubuntu.com/hardy/mysql-query-browser的东西查看数据库表/行
发布于 2013-02-21 21:08:47
1)登录到mysql,例如,MySQL服务器中的"root“用户:
$ mysql -u root -p
Enter password:2)输入密码,结果是:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 6485
Server version: 5.5.29-0ubuntu0.12.04.1 (Ubuntu)
Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>3)写:show databases;
结果是:
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| test |
| zm |
+--------------------+5行集(0.00秒)“
4)这里是你所有的数据库,说"zm“是你要找的数据库。
写:use zm;
产出如下:
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed5)您需要更改用户的密码,以便如果您想检查“zm”数据库中的“用户”表中的“用户”和其他部分。
写:select * from Users;
结果是:
+----+----------+-------------------------------------------+----------+---------+--------+--------+---------+----------+---------+--------+--------------+------------+
| Id | Username | Password | Language | Enabled | Stream | Events | Control | Monitors | Devices | System | MaxBandwidth | MonitorIds |
+----+----------+-------------------------------------------+----------+---------+--------+--------+---------+----------+---------+--------+--------------+------------+
| 1 | admin | yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy | | 1 | View | Edit | Edit | Edit | Edit | Edit | | |
| 2 | admin2 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | | 1 | View | Edit | Edit | Edit | None | Edit | | 1 |
+----+----------+-------------------------------------------+----------+---------+--------+--------+---------+----------+---------+--------+--------------+------------+2行集(0.00秒)“
6)然后假设您想更改"admin“用户的密码,并将其设置为空,然后写:
mysql> update Users set Password="" where Username="admin";结果是:
mysql> update Users set Password="" where Username="admin";
Query OK, 1 row affected (0.00 sec)
Rows matched: 1 Changed: 1 Warnings: 0
mysql>请注意,在zm配置中,所有这些"y“和"x”都正在替换我的密码中的散列。因此,如果您在zm网页的“选项”菜单中选择了散列、普通或无选项:
用于中继身份验证信息(?)散列无的AUTH_RELAY方法
在MySQL中,您将相应地看到密码,例如,您将找到一个散列,或者在没有密码的情况下,您的密码是纯文本或空空间。希望这能帮到你。我在Ubuntu服务器12.04中使用Zoneminder 1.25。
发布于 2017-04-17 23:49:27
相反,密码为零,密码使用密码函数进行散列,因此使用该函数设置新密码。
update Users set Password=PASSWORD('newpass') where Username='admin';https://askubuntu.com/questions/110841
复制相似问题