Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: I need to phpMyAdmin myself back into cp144 as an Admin  (Read 4944 times)

0 Members and 1 Guest are viewing this topic.

Raphaela

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
I need to phpMyAdmin myself back into cp144 as an Admin
« on: March 18, 2006, 11:29:03 pm »

Yes. I'm an idiot. i get that. Now,

i want to phpMyAdmin into my database (done)
and create a new user with ADMIN access (done)
and then be able to use it to get to the admin.php page. (not done)
If I am in TABLE _users
And i have :

user_id  1
user_group  1
User_active  yes
user_name  xxx
user_password  yyy
user_lastvisit  0000-00-00 00:00
user_regdate  2006-03-17 00:00
user_group_list  Administrators
user_email  my@emai.com

and user_group 1 in table _usergroups is Administrators


yet, it is still unable to log me in under xxx  (you know that xxx : yyy is placeholder and not the actual id and password, right?)

I really don't want to have to install.php all over again. :/

thanks, Raph
« Last Edit: March 19, 2006, 12:24:08 am by Nibbler »
Logged

Nibbler

  • Guest
Re: I need to phpMyAdmin myself back into cp144 as an Admin
« Reply #1 on: March 18, 2006, 11:53:22 pm »

What happens when you try to login ?
Logged

Raphaela

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: I need to phpMyAdmin myself back into cp144 as an Admin
« Reply #2 on: March 19, 2006, 12:06:20 am »

*** Couldn't log in. Try again ***

After three tries, I get banned.

So I've figured out how to unban via the _banned table.
Logged

Nibbler

  • Guest
Re: I need to phpMyAdmin myself back into cp144 as an Admin
« Reply #3 on: March 19, 2006, 12:10:06 am »

Make sure to set your password as the md5() of your password. You can do this with phpmyadmin using the box beside the text box you put the password in, you should then get a 32 character string in the db instead of your actual password.
Logged

Raphaela

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: I need to phpMyAdmin myself back into cp144 as an Admin
« Reply #4 on: March 19, 2006, 12:13:32 am »

Bingo. Perfect. All happy.

Now, only if you have the time/inclination to do so, tell me what md5() does and why is it neccessary/important?

Raphaela
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: I need to phpMyAdmin myself back into cp144 as an Admin
« Reply #5 on: March 19, 2006, 02:27:54 pm »

it's a one-way encryption algorythm. As a result, it's not the actual password that get's stored, but a resulting md5-encrypted hash that is being compared to the has of the password you enter when you log in. It's a safety precaution: even if someones manages to get your md5-encrypted hash string, he won't be able to see your actual password.
Details: http://en.wikipedia.org/wiki/MD5 and many other pages.
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 15 queries.