CouchBase 用感叹号 (!) 重置密码
CouchBase reset password with exclamation (!)
我想将转储上传到 Couchbase 存储桶。我使用 cbrestore
工具,但它要求输入密码。我有一个包含 !
的密码。当我尝试向命令行添加密码参数时,它显示:
!pass: event not found
我发现应该有一个 cbreset_password tool
的信息,但它是一个 docker 图像,而且不知何故它不包含该工具。在所有其他情况下,我需要输入旧密码,但由于感叹号而无法输入。
还有什么方法可以重设密码?
是否可以手动下载该工具,上传到docker容器并重置密码?
或者也许可以使用 UI?
In all other cases I need to type old password which I can not type because of exclamation mark
如果您 percent-encode 感叹号:
,请先检查同一个密码是否有效
%21pass
如果这不起作用,您需要确保 shell 不解释“!”。
尝试转义字符:\!pass
on Linux, ^!pass
on Windows.
或者,正如avsej in 所指出的那样:
you can patch your CLI scripts to escape the passwords:
See this thread.
It seems like a bug in the python script, it should really quote the password (and maybe other arguments) when building command line
/opt/couchbase/lib/python/cbbackupwrapper
我想将转储上传到 Couchbase 存储桶。我使用 cbrestore
工具,但它要求输入密码。我有一个包含 !
的密码。当我尝试向命令行添加密码参数时,它显示:
!pass: event not found
我发现应该有一个 cbreset_password tool
的信息,但它是一个 docker 图像,而且不知何故它不包含该工具。在所有其他情况下,我需要输入旧密码,但由于感叹号而无法输入。
还有什么方法可以重设密码?
是否可以手动下载该工具,上传到docker容器并重置密码?
或者也许可以使用 UI?
In all other cases I need to type old password which I can not type because of exclamation mark
如果您 percent-encode 感叹号:
,请先检查同一个密码是否有效%21pass
如果这不起作用,您需要确保 shell 不解释“!”。
尝试转义字符:\!pass
on Linux, ^!pass
on Windows.
或者,正如avsej in
you can patch your CLI scripts to escape the passwords:
See this thread.It seems like a bug in the python script, it should really quote the password (and maybe other arguments) when building command line
/opt/couchbase/lib/python/cbbackupwrapper