cbbackupmgr – Configure a backup :
/opt/couchbase/bin/couchbase-cli reset-admin-password --new-password pa$$word
Role Assignment – Using REST and CLI :
couchbase-cli user-manage -c http://localhost:8091 -u Administrator -p password
--set --rbac-username don-n1ql-user --rbac-password donpassword
--auth-domain local --roles "data_reader[*], query_select[*]"
curl -X PUT http://localhost:8091/settings/rbac/users/local/don-data-user
-u Administrator:password -d "roles=data_reader[travel-sample]"
-d "password=donpassword"
GRANT/REVOKE :
GRANT ROLE data_reader(`*`) to kishore;
REVOKE ROLE data_reader(`*`) from kishore;
Get user-role mappings :
SELECT * FROM system:applicable_roles WHERE bucket_name="travel-sample";
Get full user information :
SELECT * FROM system:user_info;
Note: Above are the commands used/mentioned in Module 7 of the Couchbase Database Administration Course.
DISCLAIMER
The purpose of sharing the content on this website is to Educate. The author/owner of the content do not warrant that the information provided on this website is fully complete and shall not be responsible for any errors or omissions.The author/owner shall have neither liability nor responsibility to any person or entity with respect to any loss or damage caused or alleged to be caused directly or indirectly by the contents of this website. So, use the content of this website at your own risk.
This content has been shared under Educational And Non-Profit Purposes Only. No Copyright Infringement Intended, All Rights Reserved to the Actual Owner.
For Copyright Content Removal Please Contact us by Email at besttechreads[at]gmail.com