无法提交到 svn - 访问被拒绝
问题描述:
我正在使用 SVN 进行一个小项目.
I am working on a small project with SVN.
我检查了项目:
svn co http://mylocalserver/projectx/ .
我进行了更改(更新和添加了文件):
I made my changes (updated and added files):
svn add file1.php, file2.php
但是,每次我想使用此命令提交更改时:
But then, every time I want to commit my changes using this command:
svn commit -m "added file1.php and file2.php and updated the bug #4123" file1.php file2.php gah.php
我得到:访问被拒绝
可能是什么问题?
答
如果您不使用 LDAP 服务器,则必须检查以下内容:
在你的 /path/to/the/project/conf/svnserve.conf
中检查你是否有类似的东西:
In your /path/to/the/project/conf/svnserve.conf
check if you have something like:
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 服务器,请阅读以下文章:
可能您的密码已过期,或者您没有提交的全部权限.
Maybe your password is expire or you don't have the full rights to commit.
也许这些文章会有所帮助:
Maybe these articles will help:
http://directory.fedoraproject.org/wiki/Howto:Subversion_Apache_LDAP