SkayaWiki
To « root » a Zope instance (i.e., get access to it when you have lost passwords & stuff) :
- stop the instance : zopectl instancename stop)
- start it in debug mode : zopectl instancename debug
- you will get a Python prompt. There, do :
>>> app.acl_users.users.addUser('login_for_user','login_for_user','password_for_user')
>>> app.acl_users.roles.assignRoleToPrincipal('Manager','login_for_user') #(this should answer "True")
>>> import transaction
>>> transaction.commit()