...
Create a new Admin user
For example, creating a system admin with "rootuser" as the username and "adminpass" as the password.
No Format > HOST="http://127.0.0.1:5984" > curl -X PUT $HOST/_config/admins/rootuser -d '"adminpass"' ""
System admin is allowed to do anything to not restricted in a CouchDB installation.
Confirm that the new system admin has been created successfully
Without credentials
No Format > curl -X PUT $HOST/yourdatabase {"error":"unauthorized","reason":"You are not a server admin."}
With credentials
No Format > HOST="http://rootuser:adminpass@127.0.0.1:5984" > curl -X PUT $HOST/yourdatabase {"ok":true}
- Create a new database user
...