更新 Subversion 服务器配置文件不起作用

Mat*_*mes 5 svn passwords credentials plaintext

我正在尝试更新我的 Subversion 配置,以便它不会以明文形式存储密码。我知道您需要更新 ~/.subversion/servers 文件中的配置以通过添加一行来防止这种情况:“store-plaintext-passwords = no”。

我已经这样做了,但是我的 Subversion 客户端继续向我显示标准警告:

———————————————————————————————————-
ATTENTION! Your password for authentication realm:

RainStorm Subversion Repository
can only be stored to disk unencrypted! You are advised to configure
your system so that Subversion can store passwords encrypted, if
possible. See the documentation for details.

You can avoid future appearances of this warning by setting the value
of the ‘store-plaintext-passwords’ option to either ‘yes’ or ‘no’ in
’/home/.subversion/servers’.
———————————————————————————————————-
Run Code Online (Sandbox Code Playgroud)

我已经尝试从终端注销并重新登录,但这似乎没有什么区别。我认为对于 SVN,它只是一个 CLI 工具,而不是一个我必须重新启动的守护进程,但我并不乐观。

可能会发生什么?

小智 5

要禁用警告,请编辑您的~/.subversion/servers文件。
添加/修改以下部分:

[global]
store-plaintext-passwords=no
Run Code Online (Sandbox Code Playgroud)


Laz*_*ger 0

\n

我正在尝试更新我的 Subversion 配置,以便它不会以明文形式存储密码。

\n
\n\n

它以纯文本形式存储吗?

\n\n

Windows 密码(用于存储库)始终安全存储。只有 Linux 出现了问题。

\n\n

SVN 1.6 为 Linux 用户添加了两个安全选项——GNOME Keyring 和 KDE\nKwallet。它们都是编译时选项,因此您使用的二进制文件必须支持其中之一或两者。

\n\n

CollabNet 二进制文件支持 GNOME 密钥环。如果您从图形 GNOME 桌面使用 SVN,\n它应该“正常工作”。

\n\n

插件1

\n\n

Subversion 客户端将每个领域的身份验证数据存储在 ./subversion/auth 中。

\n\n

要删除缓存数据,请转至 \xe2\x80\x9c.subversion/auth/svn.simple\xe2\x80\x9d 文件夹并删除特定文件。

\n\n

通过打开 \xe2\x80\x9c.subversion\xe2\x80\x9d 文件夹中的 \xe2\x80\x9cconfig\xe2\x80\x9d 文件并设置 \xe2\x80\x9cstore-passwords\xe2\x80 的值来禁用缓存\x9d 和 \xe2\x80\x9cstore-auth-creds\xe2\x80\x9d 到 \xe2\x80\x9cno\xe2\x80\x9d 或使用 \xe2\x80\x93no-auth-cache 作为命令行参数。

\n\n

不知何故

\n\n
[auth]\n...\npassword-stores =\n
Run Code Online (Sandbox Code Playgroud)\n\n

也可能有帮助。

\n