如何在SVN设置访问控制? [英] How to setup access control in SVN?

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

问题描述

我已经建立了使用SVN并上传项目库。有多个用户对这些项目的工作。但是,并不是每个人都正在所有的项目和需要访问。我想每一个与用户项目的设置权限。

I have set up a repository using SVN and uploaded projects. There are multiple users working on these projects. But, not everyone is working on all projects and require access. I want to setup permissions for each of the projects with users.

我如何做到这一点?

推荐答案

在您的的svn \\回购\\ YourRepo \\ CONF 文件夹,你会发现两个文件,​​的authz 和< STRONG> passwd文件即可。这是两个需要调整。

In your svn\repos\YourRepo\conf folder you will find two files, authz and passwd. These are the two you need to adjust.

passwd文件文件,你需要添加一些用户名和密码。我假设你已经做到了这一点,因为你必须使用它的人:

In the passwd file you need to add some usernames and passwords. I assume you have already done this since you have people using it:

[users]
User1=password1
User2=password2

然后,你要与的authz 文件的相应分配权限:

创建你想要的概念群体,并添加人是:

Create the conceptual groups you want, and add people to it:

[groups]
allaccess = user1
someaccess = user2

然后选择他们无论从权限和项目级别有什么权限。

Then choose what access they have from both the permissions and project level.

让我们给我们的所有访问的家伙从根所有的访问:

So let's give our "all access" guys all access from the root:

[/]
@allaccess = rw

但只给我们的有些出入人只读到一些较低级项目的访问:

But only give our "some access" guys read-only access to some lower level project:

[/someproject]
@someaccess = r

您还会发现一些简单的文档在 AuthZ的 passwd文件文件。

You will also find some simple documentation in the authz and passwd files.

这篇关于如何在SVN设置访问控制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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