Tortoise svn 文件夹限制用户使用 [英] Tortoise svn Folder restrict to users

查看:72
本文介绍了Tortoise svn 文件夹限制用户使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

用户在 SVN 中创建了 3 个文件夹,因为有些人可以访问所有文件夹.用户从文件夹 1 为他想要授权的特定子文件夹创建了另一个子文件夹.

User Created 3 folders in SVN,in that some people have access to all folders.User created another sub folder from folder1 for that particular sub folder he want authorization.

请帮忙解决这个问题.

问候,纳格斯瓦里

推荐答案

您需要包含 基于路径的授权.您可以通过 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).

这篇关于Tortoise svn 文件夹限制用户使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆