1.在多人使用SVN協同辦公時,各自配置設定好自己的任務,每個人不能随意改動别人的代碼,這個時候就是SVN權限來完成。
2.簡單測試SVN權限
2.1建立Resposity,結構如下

2.2配置設定的基本權限如下
2.3重新對Project檔案夾和MyProject檔案夾賦予權限
3.測試結果
root使用者隻能在Myproject檔案夾中修改或建立 user1使用者隻能在Project檔案夾中修改或建立
4.SVN的幾個權限規則
Inheritance principle: access rights configured for a given path are inherited by all its children paths. There are the following substitution rules:
- Access rights for a given path override access rights configured for its parent paths.
- Access rights substitution is performed on a per-user basis.
4.1繼承規則:子子產品權限覆寫父子產品,上面的例子就是這樣,父子產品配置設定的是以權限是隻讀,子子產品各自配置設定讀/寫
Priority principle: the rule with the most wide access level will be chosen if there are several access rules configured for a given path and applicable to a given user.
4.2優先級規則:對一個子產品一個使用者設定不同權限,去權限範圍大的
Deny-rules have the priority over allow-rules and might be useful to configure fine-grained access rights
4.3否認規則:否認規則(不授權)優先允許規則(授權),比如上面的root使用者和user1同屬一個組develop組,我直接對Project檔案夾授權develop組讀/寫權限。但是我又不想user1讀寫,那就給user1一個deny就行了