问题 无法提交svn - 访问被拒绝


我正在与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

可能是什么问题?


2554
2017-11-19 15:47


起源

mylocalserver意味着你的电脑?或服务器中的svn服务器?还是www svn服务器? - Book Of Zeus
它是本地网络服务器(不是我的电脑) - Neil


答案:


如果您不使用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


10
2017-11-19 16:03





你应该检查一下

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

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

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


2
2017-11-19 16:02