Guess what … you have a server, you have your own svn repositories set up on the server. Add as many repositories as you want. I used DAV with apache2 to have SVN over HTTP. The only developer who is using SVN on your server is you. Wait…. Isn’t the whole point of using source control that you share the code with other team members? The answer is no and that is when you don’t trust yourself and your laptop to be the only place which your code is stored.

Long story short, you are required to give another developer access to one of your repositories. All you need to do is to deny all users (DAV SVN users) from the root of svn repositories. open a file like below:

 vim /etc/apache2/dav_svn.authz

Then deny everyone from accessing root:

[/]
* =

Then give the developer access to that specific repository:

[myrepopsitory:/]
james  = rw

Now in dav_svn.conf enable authorization. The files is normally at:

 /etc/apache2/mods-enabled/dav_svn.conf

Enable authorization using this :

 # To enable authorization via mod_authz_svn
  AuthzSVNAccessFile /etc/apache2/dav_svn.authz

Restart apache2 and enjoy your geeky life.

 service apache2 restart