【问题标题】:TortoiseSvn authorization failed on commitTortoiseSvn 授权提交失败
【发布时间】:2012-01-28 14:23:14
【问题描述】:

我在我的电脑上使用 svnserve.exe 和 TortoiseSvn 设置了 svn 服务器。

svnserve.conf 是这个

  [global]
  anon-access = none
  auth-access = write
  password-db = passwd 

密码文件是这个

 [users]
 me = 12345
 others = 12345

授权文件是

[/]
* =
me = rw
others = rw

我可以从 svn 提交和读取,但其他用户只能读取。 提交操作给出授权错误。

我们甚至没有看到来自 TortoiseSvn 的授权对话框。

我试图删除 userdata/auth 目录。没用。

有人遇到过类似的问题吗?

【问题讨论】:

  • 抱歉,除非定义了“authz-db = authz”,否则我认为它不会使用 authz 文件。添加 authz 文件以立即回答。
  • 你是对的,它没有 - 没有意识到你发布了 整个 svnserve.conf,对不起
  • 我只能建议尝试使用--log c:\svn.log 运行svnserve,并在用户提交失败后检查日志文件

标签: svn tortoisesvn


【解决方案1】:

在全新安装 svn 和 tortoisesvn 之后, 这些设置有效。 tortoisesvn 终于问我密码了

svnserve.conf 文件

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

密码文件

[users]
saejox=12345

【讨论】:

    【解决方案2】:

    这不包含认证 svnserve.conf 文件

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

    密码文件

    [users]
    saejox=12345
    

    你必须在 authz 文件中有一些变量 像组,至尊存储库和权限 像这样在 authz

    [groups]
    team = bob, bill
    devteam = bob, barry, brett
    
    [/]
    @team = r
    bob = rw
    
    [/wowapp/trunk]
    @team = r
    @devteam = rw
    brenda = rw
    

    【讨论】:

    • 使用authz 是可选的。
    猜你喜欢
    • 1970-01-01
    • 2014-02-22
    • 2014-12-31
    • 2015-02-26
    • 2014-03-07
    • 1970-01-01
    • 2011-02-23
    • 2020-04-03
    • 2021-06-02
    相关资源
    最近更新 更多