Recover Couchbase password without knowing it

前端 未结 4 994
说谎
说谎 2021-01-15 10:50

I\'m working on a mac, downloaded the community edition for mac. Launched the app, and opened the admin console. So far so good, untill I logged out. Now I

4条回答
  •  抹茶落季
    2021-01-15 11:17

    Password is saved in plain text in config.dat binary file that located in \var\lib\couchbase folder.

    You can search for string "username" and then next to it you will see "password" field and plain text value of the password.

    I think there is an open defect to have better password storage mechanism in place.

    The password can be changed using the couchbase-cli tool.

    shell> ./couchbase-cli cluster-init -c 127.0.0.1:8091 --user=[CURRENT_USERNAME] --password=[CURRENT_PASSWORD] --cluster-init-username=[NEW_USERNAME] --cluster-init-password=[NEW_PASSWORD]

提交回复
热议问题