Share » Forums » Setup & design » Alter password file

Alter password file

Alter password file

Thursday 17 November 2005 4:51:06 am - 3 replies

Author Message

kracker (the)

The Doctor

Thursday 17 November 2005 5:35:03 am

Update the password field for the record `admin` (login name) user, by replacing the password hash with the default hash as provided by the setup wizard.

I've done this several times to solve this problem.

The default hash for the admin password is kinda hidden in the file (ezpublish root) share/db_data.dba

For me the default hash was this string (without the single `quotes` ...) 'c78e3b0f3d9244ed8c6d1c29464bdff9' .

This hash when used as the `admin` user's password hash will reset the password to `publish` without the quotes.

<b>Note: This only works for the true user login name admin (due to the kind of hash creation used in eZ publish)</b>

<i>//kracker
geeks in space : ep : 35</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Kristian Hole

Thursday 17 November 2005 7:24:22 am

To generate your new password hash under linux, you can run:

echo -n -e "admin\npublish"|md5sum

The result is:

c78e3b0f3d9244ed8c6d1c29464bdff9

like kracker specified.

To do this for another user, replace admin with the login, and publish with the wanted password.

This requires HashType in site.ini to be md5_user. (This is the normal, so if you don't know you changed it, it will work)

Kristian

http://ez.no/ez_publish/documenta...tricks/show_which_templates_are_used
http://ez.no/doc/ez_publish/techn...te_operators/miscellaneous/attribute

Rob Zimmerman

Thursday 17 November 2005 8:35:48 am

Thanks for the replies.

We've also found the root cause:
The file ezsession.MYI was corrupted.

Regards,
Rob.

Laan Negen
Stationslaan 9
5751 JL Deurne
The Netherlands
T. +31 (0)493 - 311 627
F. +31 (0)493 - 320 467

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu