Restoring VM after crash, User Authentication is not turned on

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
lorenjz
Posts: 40
Joined: Fri Feb 28, 2020 12:25 am

Restoring VM after crash, User Authentication is not turned on

Post by lorenjz »

A few days ago the VM that I run Zoneminder on crashed. I had to start over and reinstall Zoneminder. When I finished the reinstall I took the latest version of my config files as copied them directly to the /etc/zm folder. When I tried to open up the web interface, there is an error displayed on the web interface that says,”User Authentication is not turned on. You cannot log in.”

I’ve made sure that the time zones are set appropriately and also made sure permissions include www-data for /etc/zm and /var/log/zm

Any help or insight as to how to rectify this issue would be greatly appreciated!
VicThor
Posts: 39
Joined: Tue Oct 13, 2020 8:47 pm

Re: Restoring VM after crash, User Authentication is not turned on

Post by VicThor »

I went through the same ordeal last week and got the same message. This is what saved me:

mysql -uroot -p < /usr/share/zoneminder/db/zm_create.sql
mysql -e "ALTER USER 'zmuser'@localhost IDENTIFIED BY 'zmpass';"
mysql -e "GRANT ALL PRIVILEGES ON zm.* TO 'zmuser'@'localhost' WITH GRANT OPTION;"
mysql -e "FLUSH PRIVILEGES ;"
lorenjz
Posts: 40
Joined: Fri Feb 28, 2020 12:25 am

Re: Restoring VM after crash, User Authentication is not turned on

Post by lorenjz »

@VicThor Thanks for that very much. That got me going too!
Post Reply