Page 1 of 1
how to add users to zoneminder 1.25 no users tab
Posted: Sun Jul 01, 2012 5:14 pm
by juricac
hello, i password protected enterance into zoneminder, however i didnt see users tab under options to add
new user, now zoneminder asks for login and password
my question is what is default login and password for zoneminder,
and how can i add new users to zoneminder 1.25,
if i forget password is it possible to change it from the shell without uninstalling?
thanks!
Re: how to add users to zoneminder 1.25 no users tab
Posted: Sun Jul 01, 2012 8:23 pm
by juricac
i removed admin user by accident, so now if i remove zoneminder and install it again under localhost/zm/ it prompts me for username and password,
is there a way that i can manually from the shell disable it OPT_USR_AUTH i believe thats what its called and manually add new username without web gui?
and even better im wondering why it prompts me for username and password even i uninstalled zm and installed again ?
thanks!
Re: how to add users to zoneminder 1.25 no users tab
Posted: Fri Jul 27, 2012 12:26 pm
by myrmidon
Hi juricac,
the default username and password is :
admin
admin
However as I can see You managed to delete it

.
Try in console:
Code: Select all
mysql -u<your_zm_DB_user> -p<your_zm_DB_pass>
mysql>show tables;
mysql> select Id,Value,DefaultValue,Hint from Config where Name='ZM_OPT_USE_AUTH';
+----+-------+--------------+--------+
| Id | Value | DefaultValue | Hint |
+----+-------+--------------+--------+
| 1 | 1 | no | yes|no |
+----+-------+--------------+--------+
1 row in set (0.00 sec)
mysql>update Config set Value='no' where Id=1;
mysql>commit;
mysql>exit;
or with root user:
Code: Select all
mysql -uroot -p<root_DB_password>
mysql>use zm
mysql>show tables;
mysql> select Id,Value,DefaultValue,Hint from Config where Name='ZM_OPT_USE_AUTH';
+----+-------+--------------+--------+
| Id | Value | DefaultValue | Hint |
+----+-------+--------------+--------+
| 1 | 1 | no | yes|no |
+----+-------+--------------+--------+
1 row in set (0.00 sec)
mysql>update Config set Value='no' where Id=1;
mysql>commit;
mysql>exit;