Page 1 of 1

I locked myself out.

Posted: Sun Jun 18, 2006 1:24 am
by hondaman
I turned on authentication after installing, and now I cant log back in.

It asks me for a username and password, and Im not sure what information its looking for. I checked the mysql table, and entered that information, and it still didnt work.

Is there a way to turn this back off so I can see my cam page again?

Posted: Sun Jun 18, 2006 1:43 am
by cordel
user: admin
password: admin

Posted: Sun Jun 18, 2006 1:59 am
by hondaman
well... the problem is, I already changed the password from within phpmysql to a plaintext password I could remember. The password i guess was hashed :O

Posted: Sun Jun 18, 2006 2:26 am
by jameswilson
you can turn off the auth flag with phpMyadmin but that wont fix your password issue

Posted: Sun Jun 18, 2006 4:38 am
by hondaman
So am I better off just reinstalling?

Posted: Sun Jun 18, 2006 5:38 am
by cordel
Thats one way to do it, although I would think it to be easier to make a new hashed password or drop the database and reload it. Might want to search the forum.

Code: Select all

update Users set Password = password( "admin" ) where...

Posted: Sun Jun 18, 2006 6:53 pm
by hondaman
Thanks for your guys help so far. I couldnt figure out how to fix it, even after searching and searching, so I just reinstalled.

Now, when I start, I get these 2 messages. The first one concerning the motd, I saw the first time i installed. The second concerning the overriding zm.conf, however, is new:

/etc/rc.d/init.d/zm: line 128: /usr/local/sbin/motd.sh: No such file or directory
Starting ZoneMinder: Warning, overriding installed ./zm.conf file with local copy

Is this normal?

Posted: Sun Jun 18, 2006 7:07 pm
by jameswilson
the second is as I assume you have upgraded zm?

Posted: Sun Jun 18, 2006 7:08 pm
by hondaman
No. Originally it was a brand new install just a couple days ago, using the latest version from source. I locked myself out, couldnt figure it out, and did "make uninstall" then reinstalled using the same source.

Posted: Sun Jun 18, 2006 7:29 pm
by jameswilson
if a zm.conf already existed then the rpm or the build would rename it and make a new one. I get this (but only once) on starting zm for the first time after either install or u/g

Posted: Mon Jun 19, 2006 8:49 am
by zoneminder
The zm.conf message means that when you are starting ZM there is a copy of zm.conf in the same directory. Are you starting it from the build dir? If so, cd somewhere else and restart it from there.