本文介绍了在svn中提交文件后如何删除有关存储未加密密码的警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次我在svn中提交文件时,都会收到以下消息:

我不希望这种身份验证;我该如何摆脱这个警告?

解决方案

您没有在Subversion中存储密码,因为您对是否要存储此密码的问题回答了. /p>

我认为您想彻底消除此 警告消息.有两种处理方法:

  • 简单但困难的方法:每次使用Subversion命令时,都可以指定svn --no-auth-cache.这很容易做到,因为您不需要任何实际操作.很难,因为几乎每次使用Subversion命令(尤其是涉及到诸如checkoutcommit之类的存储库的命令)时,都必须执行此操作.

  • 困难但简单的方法:您可以修改用户的Subversion配置,而不询问是否要存储此信息. (顺便说一句,为什么您要以 root 身份运行?您喜欢边上生活吗?最好以用户身份运行并配置sudo以允许您执行所需的root工作.)您可以跟踪谁在做什么,而不会做会意外导致服务器瘫痪的事情.事实上,默认情况下,许多Unix/Linux系统不再允许用户以root身份登录. c3>).这很困难,因为您必须做某事,但是很容易,因为一旦您做完,就无需再做任何事情.

您具有需要编辑的文件的名称(/root/.subversion/servers).查找[global]部分,然后找到# store-passwords = no行,并从该行的开头删除#.您也可以对# store-plaintext-passwords = no行和# store-auth-cred = no行执行相同的操作.同时,您还可以删除auth目录下的文件,该目录是Subversion存储其凭据的位置.这将完全消除已经存储的密码.有关更多信息,请参见在线 Red Bean Subversion手册.

现在,当您执行涉及存储库的Subversion命令时,它会询问您用户名和密码,而不会询问您是否要存储它们.

Every time I commit a file in svn I get the following message:

I don't want this authentication; how can I get rid of this warning?

解决方案

You are not storing the password in Subversion because you answered no to the question whether or not you want to store this password.

I take it you want to eliminate this warning message entirely. There are two ways to handle that:

  • The easy, but hard way: You can specify svn --no-auth-cache each and every time you a Subversion command. It's easy to do since it requires no real action on your part. It's hard because you have to do this almost every time you use a Subversion command (especially one that touches the repository like checkout and commit).

  • The hard, but easy way: You can modify your user's Subversion configuration not to ask if you want to store this information. (BTW, why are you running as root? You like living life on the edge? Better off running as a user and configure sudo to allow you to do the root stuff you need. That way, you can track who's doing what, and you don't do something that could accidentally bring the server down. In fact, many Unix/Linux systems by default no longer allow a user to sign in as root. You have to do sudo). This is hard because you have to do something, but easy because once you do it, you don't have to do anything again.

You have the name of the file that you need to edit (/root/.subversion/servers). Look for the [global] section and look for the line # store-passwords = no and remove the # from the beginning of the line. You can also do the same for the # store-plaintext-passwords = no line and the # store-auth-cred = no line. While, you're at it, you can also delete the files under the auth directory which is where Subversion stores its credentials. This will completely eliminate already stored passwords. More information can be found in the on line Red Bean Subversion manual.

Now, when you do a Subversion command that touches the repository, it'll ask you for a user name and password and won't ask if you want to store them.

这篇关于在svn中提交文件后如何删除有关存储未加密密码的警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 01:21