如何在SVN中设置访问控制? [英] How do I set up access control in SVN?

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

问题描述

我已经使用SVN建立了存储库并上传了项目.这些项目有多个用户.但是,并非每个人都需要访问所有项目.我想为每个项目设置用户权限.

I have set up a repository using SVN and uploaded projects. There are multiple users working on these projects. But, not everyone requires access to all projects. I want to set up user permissions for each project.

我该如何实现?

推荐答案

在您的 svn \ repos \ YourRepo \ conf 文件夹中,您将找到两个文件, authz 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 文件相应地分配权限:

Then you want to assign permissions accordingly with the authz file:

创建所需的概念组,并向其中添加人员:

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天全站免登陆