Setting up Access Controls
You now need to configure access permissions to your repository. By default nobody has access. To allow anonymous read-only access to the entire repository add the following to a file called .svn-access in the public_svn directory:
[/]
* = r
Once you've created a username and password for yourself (explained below) you can give yourself read-write access, eg:
[/]
* = r
jim = rw
This section of the Subversion book has more information on further customising your .svn-access file.
Now create usernames and passwords to access your repository. You can create as many usernames for your repository as you need (for example, if you want to give access to more than one person). Add each user into a file called .svn-users in the public_svn directory you just created. Example:
jim:$apr1$zwAGM...$QUgyHdYLfsqR4I8h6dgaU/
bob:$apr1$7OC.s/..$F1CnMRW1pGY3eBDGNqJEi/
Note the format of this file, the username comes first, followed by a colon, followed by the password in MD5 crypted form. You can use this page to generate the encrypted passwords which you can then paste into your .svn-users file.