Forums / Setup & design / Alter password file

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

eZ debug

Timing: Jan 19 2025 11:49:54
Script start
Timing: Jan 19 2025 11:49:54
Module start 'content'
Timing: Jan 19 2025 11:49:55
Module end 'content'
Timing: Jan 19 2025 11:49:55
Script end

Main resources:

Total runtime1.2120 sec
Peak memory usage4,096.0000 KB
Database Queries199

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0078 588.9297180.8438
Module start 'content' 0.00781.0427 769.7734608.3984
Module end 'content' 1.05050.1615 1,378.1719337.3984
Script end 1.2119  1,715.5703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.3402210.0002
Check MTime0.00150.1245210.0001
Mysql Total
Database connection0.00070.053610.0007
Mysqli_queries1.118992.32081990.0056
Looping result0.00230.18581970.0000
Template Total1.167596.320.5838
Template load0.00220.178520.0011
Template processing1.165396.150720.5827
Template load and register function0.00020.014610.0002
states
state_id_array0.00230.193510.0023
state_identifier_array0.00170.136620.0008
Override
Cache load0.00180.1486360.0001
Sytem overhead
Fetch class attribute can translate value0.00170.136440.0004
Fetch class attribute name0.00150.120770.0002
XML
Image XML parsing0.00380.311840.0009
class_abstraction
Instantiating content class attribute0.00000.001680.0000
General
dbfile0.00950.7803410.0002
String conversion0.00000.000530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 26
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs