windows SVN授权失败

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2178129/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 13:52:11  来源:igfitidea点击:

SVN authorization failed

windowssvnauthentication

提问by cc96ai

I installed SVN in Windows XP. I got the error when I create a project. How do I fix it?

我在 Windows XP 中安装了 SVN。创建项目时出现错误。我如何解决它?

C:\svn\bin>svn mkdir svn://localhost/myproject -m "some msg" --username user1 --password pass svn: Authorization failed

C:\svn\bin>svn mkdir svn://localhost/myproject -m "some msg" --username user1 --password pass svn: 授权失败

Here is the configuration file in SVN:

这是SVN中的配置文件:

svnserve.conf

配置文件

anon-access = none
auth-access = write
password-db = passwd

anon-access = none
auth-access = 写
密码-db = passwd

passwd

密码

[users]
user1=pass1
user2=pass2

[用户]
user1=pass1
user2=pass2

回答by Ray

If the

如果

authz-db = authz

line is uncommented, you have to modify the authz file like this:

行未注释,您必须像这样修改 authz 文件:

[/]
me = rw
otheruser = r

I missed the [/]before and I've got the "svn: Authorization failed" on client side. But it works well now.

我错过了[/]之前,我在客户端得到了“svn:授权失败”。但它现在运作良好。

回答by Simon P Stevens

It looks like you've got your password wrong:

您的密码好像有误:

C:\svn\bin>svn mkdir svn://localhost/myproject -m "some msg" --username user1 --password passsvn

C:\svn\bin>svn mkdir svn://localhost/myproject -m "some msg" --username user1 --password passsvn

[users]
user1=pass1
user2=pass2

[用户]
user1= pass1
user2=pass2

You've entered "pass" but your password is specified as "pass1"

您已输入“ pass”,但您的密码指定为“ pass1

回答by TheLukeMcCarthy

Are you sure you have set up your SVN repository correctly?

您确定正确设置了 SVN 存储库吗?

Check the following

检查以下内容

Open the file

打开文件

<path to repository>myproject\conf\svnserve.conf

Check the following line aren't commented out (if the line starts with a # remove it)

检查以下行是否未注释掉(如果该行以 # 开头,请删除它)

anon-access = read  
auth-access = write  
password-db = passwd

回答by Otávio Décio

I guess you should write

我想你应该写

C:\svn\bin>svn mkdir svn://localhost/myproject -m "some msg" --username user1 --password pass1 svn: 

instead, your password seems to be wrong.

相反,您的密码似乎是错误的。