SkayaWiki

DirtyZopeTricks

JeromePetazzoni :: DerniersChangements :: DerniersCommentaires? :: ParametresUtilisateur :: http://www.enix.org/ :: Vous êtes ec2-54-162-152-232.compute-1.amazonaws.com

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()

Il n'y a pas de commentaire sur cette page. [Afficher commentaires/formulaire]