Subversion存储库的只读访问权限

lam*_*cro 5 svn

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

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

Dav*_*vid 7

假设你正在使用svnserv:

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

harry = rw
sally = r
Run Code Online (Sandbox Code Playgroud)

另外,svnserv.conf文件中有一节要查看:

harry具有读/写访问权限,而sally是只读的.

[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
Run Code Online (Sandbox Code Playgroud)

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