19

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?

Woltan
  • 13,723
  • 15
  • 78
  • 104
  • 3
    It seems to be duplicate of http://stackoverflow.com/questions/81361/how-to-setup-access-control-in-svn – altern Feb 15 '12 at 11:30

1 Answers1

18

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.

altern
  • 5,829
  • 5
  • 44
  • 72
  • But doesn't this approach only work if the repository is on a server and not a network drive? – Woltan Feb 15 '12 at 12:07
  • 2
    if you mean `file:///` protocol, then you're right, it does not work. Actually, there is no access management for `file:///` protocol available. – altern Feb 15 '12 at 12:18
  • Thank you, this answers my question ^^ – Woltan Feb 15 '12 at 12:58
  • is there a faster way if you have 100 repos to point them all to the same auth and passdb ? i have it running with http:// but can't figure it out with svn:// – Dany Khalife May 07 '14 at 13:21
  • @DanyKhalife You can have a single/global auth and passwd file but the svnserve.conf file in your 100 repos will need to be updated to point at the global auth and passwd file. You'd update `authz-db` and `password-db` in the svnserve.conf files. – Jesse Apr 17 '15 at 17:08
  • thanks but actually the way i ended up doing this is by providing a conf file to svnserve during startup and that conf file specifies the authz-db and password-db files, no need to anything on a per repository basis – Dany Khalife Apr 17 '15 at 21:14