At Fry-IT
change_zope_root_password.py
19th of November 2007
Here's a little quick script I put together to change a password of a Zope root user with the Manager role.
We needed this script since we often want to change the root password of many Zopes at the same time instead of having to manually log into each and change it.
A problem with ./bin/zopectl adduser is that this only allows you to add Manager users.
This script is version 0.0.1 which means that it works but hasn't been improved to matured one bit. Make sure you test it on a harmless Zope before you do this on your production servers. And another thing, I've only myself tested it on Zope 2.8.9 but I can't believe it'd work much differently on any of the newer or older Zope 2s. Here's how you use it:
chmod +x change_zope_root_password.py ./change_zope_root_password.py -u admin:oldpassword \ -p /usr/lib/zope-2.8.9/lib/python \ -P 8080 -d localhost
Download change_zope_root_password.py 0.0.1