Can't Login
-
- Posts: 22
- Joined: Sat Jul 04, 2009 4:53 pm
Can't Login
Hello,
All was working quite well - added cameras etc. Then I switch authentication on.
Now I cannot login. I tried admin/admin, the system appears to logon for a brief second, then I get returned to the login screen. I read on another thread that I can turn authentication off in webmin. I took a look but I can't see how to do this. Could someone help me?
I am running Centos 5 with Zoneminder 1.23.3
Jon
________
Suzuki Alto Lapin History
All was working quite well - added cameras etc. Then I switch authentication on.
Now I cannot login. I tried admin/admin, the system appears to logon for a brief second, then I get returned to the login screen. I read on another thread that I can turn authentication off in webmin. I took a look but I can't see how to do this. Could someone help me?
I am running Centos 5 with Zoneminder 1.23.3
Jon
________
Suzuki Alto Lapin History
Last edited by nojstevens on Sat Feb 12, 2011 6:29 am, edited 1 time in total.
-
- Posts: 22
- Joined: Sat Jul 04, 2009 4:53 pm
Yes, I found that, but when I enter it, it appears to login for a second and then returns to the logon page.
Jon
________
Buy bubblers
Jon
________
Buy bubblers
Last edited by nojstevens on Sat Feb 12, 2011 6:29 am, edited 1 time in total.
-
- Posts: 22
- Joined: Sat Jul 04, 2009 4:53 pm
Last edited by nojstevens on Sat Feb 12, 2011 6:29 am, edited 1 time in total.
-
- Posts: 22
- Joined: Sat Jul 04, 2009 4:53 pm
Hi 50cc, thanks for your input - what exactly did you do - step wise - with phpmyadmin? I'm not familiar with this.
Any help would be much appreciated, I don't want to have to reinstall (again)!
Jon
________
Miyoshi plant (mazda)
Any help would be much appreciated, I don't want to have to reinstall (again)!
Jon
________
Miyoshi plant (mazda)
Last edited by nojstevens on Sat Feb 12, 2011 6:29 am, edited 1 time in total.
http://<yourserver>/phpmyadmin
ZM database -> Users table -> Click on SQL at the top of the page.
Insert:
Click Go.
ZM database -> Users table -> Click on SQL at the top of the page.
Insert:
Code: Select all
INSERT INTO `Users` (`Id`, `Username`, `Password`, `Language`, `Enabled`, `Stream`, `Events`, `Control`, `Monitors`, `Devices`, `System`, `MaxBandwidth`, `MonitorIds`) VALUES
(1, 0x61646d696e, '*4ACFE3202A5FF5CF467898FC58AAB1D615029441', '', 1, 'View', 'Edit', 'Edit', 'Edit', 'Edit', 'Edit', '', '');
-
- Posts: 22
- Joined: Sat Jul 04, 2009 4:53 pm
Last edited by nojstevens on Sat Feb 12, 2011 6:30 am, edited 1 time in total.
-
- Posts: 22
- Joined: Sat Jul 04, 2009 4:53 pm
Hi, tried the above but still the same, can't logon.
This was working before i ticked the box to say 'require authorization' in the ZM Options page.
Would you know how to untick this option in a config file or in the mysql tables - that would allow me in again?
Thanks for your help
Jon
________
Vaporizer reviews
This was working before i ticked the box to say 'require authorization' in the ZM Options page.
Would you know how to untick this option in a config file or in the mysql tables - that would allow me in again?
Thanks for your help
Jon
________
Vaporizer reviews
Last edited by nojstevens on Sat Feb 12, 2011 6:30 am, edited 1 time in total.
-
- Posts: 22
- Joined: Sat Jul 04, 2009 4:53 pm
-
- Posts: 21
- Joined: Sat Jan 07, 2017 2:09 am
Re: Can't Login
This worked for me:
If you have not set an explicit password for mysql, the system root password worked for me.
Then select the zm database:
Then enter the following:
This will set the default login to admin and the password to changepassword
Code: Select all
mysql -u root -p
Enter password:
Then select the zm database:
Code: Select all
use zm;
Code: Select all
INSERT INTO `Users` (`Id`, `Username`, `Password`, `Language`, `Enabled`, `Stream`, `Events`, `Control`, `Monitors`, `Devices`, `System`, `MaxBandwidth`, `MonitorIds`) VALUES
(1, 'admin', '*3B34B40DAE3DD1E15943B37622F688A6D7F8002D', 'en_gb', 1, 'View', 'Edit', 'Edit', 'Edit', 'Edit', 'Edit', '', '');
Re: Can't Login
Thanks to mysterylectricity for pointing at a solution having just locked myself out by enabling authentication.
As an enhacement to his solution in the post above, if you have an existing admin user then use this SQL command instead of the INSERT:
You should then be able to log in using:
Username: admin
Password: changepassword
As an enhacement to his solution in the post above, if you have an existing admin user then use this SQL command instead of the INSERT:
Code: Select all
UPDATE `Users` set Password = '*3B34B40DAE3DD1E15943B37622F688A6D7F8002D' where `Id` = 1;
Username: admin
Password: changepassword