Skip to navigation
Use a simple bash script to conveniently create a couch db user
12.09.23
# Create a simple bash script to conveniently create a couch db user ```console #!/bin/bash echo "Username: $1"; echo "Password: $2"; curl -k -X PUT https://admin:adminpassword@cb.foo.com/_users/org.couchdb.user:$1 -H "Accept: application/json" -H "Content-Type: application/json" -d "{\"name\": \"$1\", \"password\": \"$2\", \"roles\": [], \"type\": \"user\"}" ```
https://docs.couchdb.org/en/stable/intro/security.html
Reply
Anonymous
Information Epoch 1736940760
Make every program a filter.
Home
Notebook
Contact us