I would like to bring my CouchDB instance back to admin party. It is running on localhost, so it is not a security concern. I don't want to reinstall it because I have some databases up and running I'd like to keep.
I tried commenting out the admin user in my local.ini
:
[admins]
#admin = -hashed-xxxxxx
I also deleted all the non-design documents from my _users
database.
The main goal I have for wanting to go back to the admin party is to be able to create databases without authentication.
What can I do to go back to the admin party? Alternatively how can I setup my instance such that an anonymous user can create and delete databases?
You can fix this by accessing CouchDB via 127.0. 0.1 , e.g. http://127.0.0.1:5984/_utils/ . Navigate to the test suite by clicking “Test Suite” on the Futon sidebar, then click “run all” at the top to kick things off.
Click on the “Permission” block to add new admins and users. Go to Admin block, to change the Admin password. Go to Create Admin block to create other admins.
You can also do that through CouchDB Web UI.
http://127.0.0.1:5984/_utils/config.html
in CouchDB 1.x or http://127.0.0.1:5984/_utils/#_config
in CouchDB 2.x).admin
section, delete all rows.#
is not a valid comment in this configuration format, Use ;
instead.
If you try to login as #admin
(rather than just admin
) it will let you, if you give the right password. So, either remove the line altogether, or prefix it with ;
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With