引用:
原帖由 尊称 于 2006-8-6 20:28 发表
[/]
@boss = r
@admin = rw
* =
[repository:/]
* = rw
由于你使用了SVNParentPath指令,所以这么配置有冲突
[/]表示你所有代码库的根目录,而[repository:/]表示其中一个名叫“repository”的代码库的根目录
你在前者中说“所有人没有权限访问根目录,包括那个名叫reopsitory的也不行”,在后面又说“所有人都可以访问repository代码库根目录”,你让Subversion很郁闷,不知道该怎么办了
正确做法,一般只用后者,对每个代码库都独立进行权限设定。参考下面一段,从 svnbook.red-bean.org 上摘抄下来的:
引用:
To be more specific: the value of the section-names are either of the form [repos-name:path] or the form [path]. If you're using the SVNParentPath directive, then it's important to specify the repository names in your sections. If you omit them, then a section like [/some/dir] will match the path /some/dir in every repository. If you're using the SVNPath directive, however, then it's fine to only define paths in your sections—after all, there's only one repository