How to set permissions in an svn repository?

2019-03-24 12:30发布

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条回答
混吃等死
2楼-- · 2019-03-24 12:59

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.

查看更多
登录 后发表回答