如何在svn存储库中设置权限? [英] How to set permissions in an svn repository?
问题描述
我使用svnadmin create repos
在网络驱动器上创建了一个存储库.
I created a repository on a network drive with svnadmin create repos
.
是否可以为存储库设置用户权限?
Is there a way to set user permissions to the repository?
如果是这种情况,如何设置这些权限?
And if that is the case how can those permissions be set?
推荐答案
如果您需要通过svn://
协议(嵌入式授权)管理访问权限,那么您要做的就是更改新创建的conf
文件夹中的文件创建的存储库:
If you need to manage access via svn://
protocol (embedded authorization), all you need to do is to change files in conf
folder of your newly created repository:
- 设置passwd(
repos/conf/passwd
)以便定义用户和密码列表 - 设置authz(
repos/conf/authz
)以定义组和特权 - 设置svnserve.conf(
repos/conf/svnserve.conf
)以定义常规访问配置
- Set up passwd (
repos/conf/passwd
) in order to define a list of users and passwords - Set up authz (
repos/conf/authz
) in order to define groups and privileges - Set up svnserve.conf (
repos/conf/svnserve.conf
) in order to define general access configuration
这是如何编辑和配置对存储库访问权限的简单指南.您也可以依次查阅官方文档.深入研究Subversion访问管理.
Here is simple guide of how to edit and configure access to your repository. Also you can consult official documentation in order to dive into subversion access management.
如果需要通过http://
协议管理访问,则可能要咨询有关此问题的官方Subversion文档,它比嵌入式Subversion授权要复杂得多.
In case you need to manage access via http://
protocol, you might like to consult official subversion documentation on this matter, it's a bit more complex topic than embedded subversion authorization.
这篇关于如何在svn存储库中设置权限?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!