I locked myself out.

Support and queries relating to all previous versions of ZoneMinder
Locked
hondaman
Posts: 25
Joined: Sat Jun 17, 2006 9:29 pm

I locked myself out.

Post 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?
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

user: admin
password: admin
hondaman
Posts: 25
Joined: Sat Jun 17, 2006 9:29 pm

Post 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
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

you can turn off the auth flag with phpMyadmin but that wont fix your password issue
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
hondaman
Posts: 25
Joined: Sat Jun 17, 2006 9:29 pm

Post by hondaman »

So am I better off just reinstalling?
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post 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...
hondaman
Posts: 25
Joined: Sat Jun 17, 2006 9:29 pm

Post 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?
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

the second is as I assume you have upgraded zm?
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
hondaman
Posts: 25
Joined: Sat Jun 17, 2006 9:29 pm

Post 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.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post 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
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post 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.
Phil
Locked