结账时授权失败

时间:2010-10-26 16:38:24

标签: svn configuration

当我想要检查我的SVN服务器时出错。我在Windows上使用Turtoire,SVN服务器基于linux。

svnserve.conf的

[general]
anon-access = none
auth-access = write
password-db = passwd
authz-db = authz
realm = Project_ASI

passwd的

[users]
red = v1z2r
dips = dipsi

AuthZ的

[groups]
red_and_dips = red,dips

[Project_ASI:/]
@red_and_dips = rw

这是我想要测试时的结果:

root@dm800:/media/hda1/svn/test# svn checkout svn://192.168.1.100/test test --us
ername red
Authentication realm: <svn://192.168.1.100:3690> Project_ASI
Password for 'red':

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

   <svn://192.168.1.100:3690> Project_ASI

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/root/.subversion/servers'.
-----------------------------------------------------------------------
Store password unencrypted (yes/no)? yes
svn: Authorization failed
root@dm800:/media/hda1/svn/test#

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/root/.subversion/servers'.
-----------------------------------------------------------------------
Store password unencrypted (yes/no)? yes
svn: Authorization failed

我的配置文件出了什么问题?

2 个答案:

答案 0 :(得分:1)

第一

AuthZ的

[groups]
red_and_dips = red,dips

[Project_ASI:/]
@red_and_dips = rw

添加* =看起来像

[groups]
red_and_dips = red,dips

[Project_ASI:/]
@red_and_dips = rw
* =

第二

  

请显示您的路径/ / repositories /

让我们进一步调查,谢谢。

答案 1 :(得分:-1)

我从服务器得到了同样的错误,最后通过在文件svnserve.conf中写入完整路径来修复它。

[general]
anon-access = none
auth-access = write
## password-db = passwd
password-db = /path/to/repos/conf/passwd
## authz-db = authz
authz-db = /path/to/repos/conf/authz