天天看點

svn Server authz 配置示例(檔案夾權限配置)

[aliases]


[groups]
admin = jiangzhehao
technology = chenlei,liulei,xunzheng,qiaomingjie
sales = chenlei,liuxiaocong,wuzhikai

[hdxy:/]
@admin = rw
@technology = r
@sales = r

[hdxy:/00 公司資料]
@admin = rw
@technology = r
@sales = r

[hdxy:/05 技術資料]
@admin = rw
@technology = r
@sales = 

[hdxy:/10 銷售資料]
@admin = rw
@sales = r
@technology = 

[hdxy:/99 歸檔]
@admin = rw
@sales = 
@technology =      

經過測試發現,svn server 配置權限的時候,需要在每一個檔案夾下 給 所有使用者組配置權限,否則會出現認證失敗的現象。

為了簡化配置,也可以使用通配符,具體示例如下:

[aliases]

[groups]
admin = jiangzhehao
technology = chenlei,liulei,xunzheng,qiaomingjie
sales = chenlei,liuxiaocong,wuzhikai

[hdxy:/]
@admin = rw
@technology = r
@sales = r

[hdxy:/00 公司資料]
@admin = rw
@technology = r
@sales = r

[hdxy:/05 技術資料]
@admin = rw
@technology = r
* = 

[hdxy:/10 銷售資料]
@admin = rw
@sales = r
* = 

[hdxy:/99 歸檔]
@admin = rw
* =      

繼續閱讀