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('a','a','pass')
... then do some black magic to add the role ...
>>> import transaction
>>> transaction.commit()