SVN - 如何限制用户对特定文件夹的访问? [英] SVN - how to restrict user access to certain folders?

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

问题描述

我有一个SVN仓库,其中我需要给特定用户到几个特定的​​文件夹读/写访问。访问该文件夹及其子是确定的,但访问该文件夹的父母也不行。

I have an SVN repository wherein I need to give a particular user read/write access to several specific folders. Access to the folder and its children is OK, but accessing the folder's parent is not OK.

此外,它实际上是两个独立的文件夹,我需要这个用户访问 - 这些2个文件夹是不一样的树节点的一部分(但最终他们,如果你去了足够的水平)

Also, it's actually 2 separate folders I need this user to access -- and these 2 folders are not part of the same tree node (but eventually they are if you go up enough levels).

我有机会获得SVN的 / conf目录/ AuthZ的 / conf目录/ passwd文件 /conf/svnserve.conf / 文件。

I have access to SVN's /conf/authz, /conf/passwd, and /conf/svnserve.conf/ files.

推荐答案

将以下文本添加到您的authz通过指定一个名称为用户的基于路径的授权< reponame> 可以是任何存储库的名称)。

Add the following text to your authz specifying a user by name for path-based authorization (<reponame> can be the name of any repository).

[<reponame>:/branches/calc/bug-142/secret]
harry =

为了让哈利的秘密文件夹的只读访问然后执行以下操作。

To give Harry readonly access to the secret folder then do the following.

[<reponame>:/branches/calc/bug-142/secret]
harry = r

这将特别从有任何限制较少继承的权限拒绝用户。

These will specifically deny a user from having any less restrictive inherited permissions.

这篇关于SVN - 如何限制用户对特定文件夹的访问?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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