He is a Technical professional. He is a person who loves to share tricks and tips on the Internet. He Posts what he does!
Hi All, This document deals with how to set up folder-based access for svn repository.
SVN or subversion one of the other opensource version control tools. This can be used as a source control management system if you are not looking for any many features that git and other source tools provide.
Sometimes there are some needs for you to provide folder-based access on your project for certain users. Some people may need to read or some need to read-write access. This document deals with the above-mentioned scenario. I hope this will help you!!
Steps 1:
Edit your subversion.conf adding
Adding the above file will help you manage access control on your repository. It’s required to add the above-mentioned configuration in each subversion repository configuration file. This enforces the repository to read the ACL from the above-mentioned file.
For multiple repositories you can use either the same ACL file or you can create separate files for managing. Using the same file may create some kind of confusion for the user in the ACL part. So it’s recommended using separate files for different repos. It all depends on how manages it.
Step 2: Now create a file called /etc/project1_access for access control.
Now add the below section the repo access file.
save and exit
Step 3: Now restart the apache web service.
Step 4: Now open the browser with user 5 and try to navigate any other folder which doesn’t have permission. You will get a FORBIDDEN message since that folder ACL is not mentioned in the ACL file. Where the same user can access https://IP/project1/UI/react/code with only read privileges. User5 can’t do any commit access to that folder.
© 2020, Techrunnr. All rights reserved.