Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Going back to admin party

Tags:

couchdb

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?

like image 799
David V Avatar asked Dec 02 '11 18:12

David V


People also ask

How do I open CouchDB in browser?

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.

How do I create an admin account on CouchDB?

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.


2 Answers

You can also do that through CouchDB Web UI.

  1. Go to the configuration panel (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).
  2. In the admin section, delete all rows.
  3. Relax: this is "admin party" again.
like image 23
Aurélien Avatar answered Sep 17 '22 06:09

Aurélien


# 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 ;.

like image 196
Dominic Barnes Avatar answered Sep 19 '22 06:09

Dominic Barnes