How to setup access control in SVN?

Here are the 2 main steps for SVN access control: 

1) Set up the users who'll be able to access the SVN repository
2) Grant ACL permission for the SVN users

STEP-1: Set up the users who'll be able to access the SVN repository

We're going to do this by using basic authentication by using the htpasswd command.

htpasswd -cm /etc/svn-auth-conf userone

Note that we only need to use the -cm switch for the first user, -m for subsequent ones.

htpasswd -m /etc/svn-auth-conf usertwo
htpasswd -m /etc/svn-auth-conf userthree


To delete an user, run this command:

htpasswd -D /etc/svn-auth-conf userthree

STEP-2: Grant ACL permission for the SVN users

To do this, edit the file /etc/svn-acl-conf and add permissions as shown below:

userone = rw
usertwo = r

Save this file and then restart the web server: 

/sbin/service httpd restart

Was this answer helpful?

Also Read
JRuby demo login info

After you buy your own JRuby VPS, please replace the following demo IPs withthe ACTUAL IPs shown...

Spree demo login info

After you buy your own Spree VPS, please replace the following demo IPs with the ACTUAL IPs are...

How to install a new template on your Django CMS

Perform the following steps once you have installed Django-cms on your server. 1) Install a...

Ejabberd demo login info

After you buy your own Ejabberd VPS, please replace the following demo IPs withthe ACTUAL IPs are...

How to install kPlaylist with 1-click auto installer

Locate your account activation email and perform the following steps: Login to your Cpanel and...