How to set permissions in an svn repository?

断了今生、忘了曾经 提交于 2019-12-04 16:10:23

问题


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?


回答1:


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:

  1. Set up passwd (repos/conf/passwd) in order to define a list of users and passwords
  2. Set up authz (repos/conf/authz) in order to define groups and privileges
  3. Set up svnserve.conf (repos/conf/svnserve.conf) in order to define general access configuration

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.

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.



来源:https://stackoverflow.com/questions/9291294/how-to-set-permissions-in-an-svn-repository

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!