【问题标题】:Cannot commit to svn - access denied无法提交到 svn - 访问被拒绝
【发布时间】:2012-01-01 23:12:46
【问题描述】:

我正在使用 SVN 进行一个小项目。

我检查了项目:

svn co http://mylocalserver/projectx/ .

我进行了更改(更新并添加了文件):

svn add file1.php, file2.php

但是,每次我想使用这个命令提交我的更改时:

svn commit -m "added file1.php and file2.php and updated the bug #4123" file1.php file2.php gah.php

我得到:Access is denied

可能是什么问题?

【问题讨论】:

  • mylocalserver 是指你的电脑?还是您服务器中的 svn 服务器?还是 www svn 服务器?
  • 这是一个本地网络服务器(不是我的电脑)

标签: svn commit


【解决方案1】:

你应该检查一下

  • 您有权写入存储库(询问存储库管理员)
  • 您使用配置的用户名提交。默认情况下,Subversion 使用您在发出命令时使用的用户名,但您可以使用 --username 选项指定不同的用户名

    svn --username mysvnusername --message "added file1.php and file2.php and updated the bug #4123" file1.php file2.php gah.php
    

如果您是存储库管理员,请检查 Subversion Server 的日志文件,看看出了什么问题

【讨论】:

    【解决方案2】:

    如果您不使用 LDAP 服务器,则必须检查:

    在您的/path/to/the/project/conf/svnserve.conf 中检查您是否有类似的内容:

    anon-access = none
    auth-access = none
    

    你将不得不改变使用:

    anon-access = none
    auth-access = write
    password-db = /path/to/passwd
    

    然后在你的/path/to/the/project/conf/passwd

    您可以创建您的用户:

    user1 = password
    

    如果您使用的是 LDAP 服务器,请阅读以下文章:

    可能您的密码已过期,或者您没有完全的提交权限。

    也许这些文章会有所帮助:

    http://directory.fedoraproject.org/wiki/Howto:Subversion_Apache_LDAP

    http://www.mylinuxtips.info/?p=7

    【讨论】:

      猜你喜欢
      • 2014-07-26
      • 2011-04-20
      • 2011-07-31
      • 1970-01-01
      • 1970-01-01
      • 2014-10-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多