Alter password file

Author Message

Rob Zimmerman

Thursday 17 November 2005 4:51:06 am

Hi,

Due to the fact I'm not able to login to the system as a admin user (problem reported before on this forum. no answer satisfied), I'm looking to go around the problem.

Is there a way to alter the admin entry in the password file?

What do I have to do when I want to reinstall the software and be able to keep all the content?

Regards,
Rob

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

kracker (the)

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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 01:05:52
Script start
Timing: Jan 19 2025 01:05:52
Module start 'layout'
Timing: Jan 19 2025 01:05:52
Module start 'content'
Timing: Jan 19 2025 01:05:53
Module end 'content'
Timing: Jan 19 2025 01:05:53
Script end

Main resources:

Total runtime0.6658 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 589.1484152.6250
Module start 'layout' 0.00550.0031 741.773439.4297
Module start 'content' 0.00860.6558 781.2031603.3203
Module end 'content' 0.66440.0014 1,384.523412.1875
Script end 0.6658  1,396.7109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.4566160.0002
Check MTime0.00130.1974160.0001
Mysql Total
Database connection0.00080.126610.0008
Mysqli_queries0.606491.0765620.0098
Looping result0.00050.0760600.0000
Template Total0.634595.320.3172
Template load0.00180.277120.0009
Template processing0.632695.012020.3163
Template load and register function0.00010.016410.0001
states
state_id_array0.00110.163610.0011
state_identifier_array0.00100.145520.0005
Override
Cache load0.00140.2151360.0000
Sytem overhead
Fetch class attribute can translate value0.00040.059230.0001
Fetch class attribute name0.00080.119570.0001
XML
Image XML parsing0.00310.461830.0010
class_abstraction
Instantiating content class attribute0.00000.002380.0000
General
dbfile0.00380.5636300.0001
String conversion0.00000.001040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 26
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs