how to add users to zoneminder 1.25 no users tab

Forum for questions and support relating to the 1.25.x releases only.
Locked
juricac
Posts: 22
Joined: Wed Jun 15, 2011 2:03 pm

how to add users to zoneminder 1.25 no users tab

Post 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!
juricac
Posts: 22
Joined: Wed Jun 15, 2011 2:03 pm

Re: how to add users to zoneminder 1.25 no users tab

Post 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!
myrmidon
Posts: 1
Joined: Fri Jul 27, 2012 12:18 pm

Re: how to add users to zoneminder 1.25 no users tab

Post 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;
Locked