且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Tortoise svn 文件夹限制用户使用

更新时间:2023-12-01 23:46:58

您需要包含 基于路径的授权.您可以通过 authz 文件限制对文件夹的权限.假设您有一个目录结构,例如:

You would need to include Path-Based Authorization. You can limit permissions to the folder through the authz file. So let's say you have a directory structure such as:

Repo/trunk
|_ Folder1
   |_ Sub-folder  
|_ Folder2
|_ Folder3

你可以像这样设置你的权限文件:

You would set your permissions file like this:

[groups]
x-group = Nageswari, Chris
y-group = User3

[Repo:/trunk]
@x-group = rw
@y-group = rw

[Repo:/trunk/Folder1/Sub-folder]
@x-group = 
@y-group = rw

@x-group = 行基本上禁止某个组(或者您也可以指定一个用户)访问该目录.(老实说,下面的一行:@y-group = rw 实际上是多余的,因为它本质上会从主干接收那些对 y-group 的权限.但是为简洁起见,您可以将其保留).

Where the line @x-group = essentially forbids a certain group (or you can specify a user as well) from accessing that directory. (In all honesty, the line underneath that: @y-group = rw is actually redundant because it would inherently receive those permissions for y-group from the trunk.. But for brevity sake you can keep it in).