Page 1 of 1

Reset admin password?

Posted: Fri Sep 16, 2011 6:12 pm
by zccopwrx
I am running 1.24.2 and at some point I set the admin password, but have forgotten it. The problem is I want to re-enable authentication, but as soon as I do, I need to be able to log back in to manage users (or even disable auth). Obviously since I dont know the password, this is a huge issue.

Can someone give me some direction on how to reset it, or change it without risking loosing access to ZM?? I looked in the database but it seems to just be a password HASH, and not a usable password.

Any Ideas?

Re: Reset admin password?

Posted: Sun Oct 02, 2011 6:03 am
by kevin186
I found the answer @ http://www.zoneminder.com/forums/viewto ... ord#p56096 . I tested it out on one of my users by logging into phpmyadmin and deleting the user's password. I was then able to log in to that account by leaving the password empty.

Note: the password is hashed using mysql's function password(). You can run a sql query

Code: Select all

SELECT PASSWORD('my-password');
to output the hashed password.