簡體   English   中英

無法提交svn - 訪問被拒絕

[英]Cannot commit to svn - access denied

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

可能是什么問題?

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

你應該檢查一下

  • 您有權寫入存儲庫(詢問存儲庫管理員)
  • 你使用配置的用戶名提交。 默認情況下,Subversion使用您在發出命令時使用的用戶名,但您可以使用--username選項指定其他用戶名

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

如果您是存儲庫管理員,請檢查Subversion服務器的日志文件以查看出現了什么問題

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM