The reset_token action require the couchdb user and password from /etc/cozy/couchdb.login. But if this file is lost or wrong, user has no way to drop CouchDB admin.
We should add some sort of hard delete that delete admin from CouchDB configuration and restart the server.
The best way to do this that I have found is:
for n in {1..10}; do sed -i -e '/^\[admins\]/{n;d}' /etc/couchdb/local.ini; done;
service couchdb restart
The
reset_token
action require the couchdb user and password from/etc/cozy/couchdb.login
. But if this file is lost or wrong, user has no way to drop CouchDB admin. We should add some sort of hard delete that delete admin from CouchDB configuration and restart the server. The best way to do this that I have found is: