存储库的只读访问权限

存储库的只读访问权限

本文介绍了Subversion 存储库的只读访问权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何限制对存储库的访问,以便某些用户只能签出/更新?

How can I limit access to a repository so certain users can only checkout/update?

我们希望控制存储库,以便只将生产就绪的代码提交到存储库,但仍希望程序员使用存储库,并获得可用的最新代码.

We want to control the repository so only production-ready code is committed to the repository, but still want the programmers to use the repository, and have the up-to-date code available.

推荐答案

假设您正在使用 svnserv:

Assuming you're using svnserv:

您需要在 authz 文件中明确配置用户的权限.

You need to configure the user's rights explicitly in the authz file.

harry = rw
sally = r

另外,svnserv.conf 文件中有一个部分可以查看:

Also, there is a section in the svnserv.conf file to look at:

harry 有读/写权限,sally 是只读的.

harry has read/write access, and sally is read-only.

[general]
### These options control access to the repository for unauthenticated
### and authenticated users.  Valid values are "write", "read",

### and "none".  The sample settings below are the defaults.

anon-access=read

auth-access=write

这里有更多信息:http://www.visualsvn.com/support/svnbook/serverconfig/svnserve/

这篇关于Subversion 存储库的只读访问权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-14 00:10