How to lock the SVN repository?

MichaelBalack
MichaelBalack used Ask the Experts™
on
This is using the SVN (subversion) to control the version number of the code. The source server is an VM using CentOS 6.4, while the destination server is a redhat Enterprise linux 6.7. Both Linux systems are installing SVN by yum, for example, yum install subversion, and yum install mod_dav_svn. apache (httpd) was utilized. The version of SVN is 1.6.

As for the SVN structure, the httpd.conf located in /etc/httpd, while all SVN repository config are put in /etc/httpd/conf.d. However, all SVN repository are stored in /home/svn. As for the user authentication, LDAP is in used, in which this pointed to our MS Windows AD Domain. Both systems were setup in the same fashion.

Now, selective repositories are needed to be migrated from CentOS to redhat linux. The redhat linux SVN server is working now. However, as for the old centOS svn server, those affected repository still kept but none of them should allow committed or updated.
Is there a way to "lock" all the files and folders of those affected repository, sounds like using "svn lock" or else? Or only allow those users to read-only but not write?

Please help, thanks a lot.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Distinguished Expert 2017

Commented:
From the new svn server, checkout the data you copy into the new repository.
Change permission on the repository removing write rights.
MichaelBalackSenior System Engineer

Author

Commented:
Hi Arnold,

How to "Change permission on the repository removing write rights"?

Are you referring to linux file permissions? by default each repo is assigned 755, so change this to 311? or else?
Distinguished Expert 2017
Commented:
Yes, changing the
555 removes write access on directories, 444 on files.
But before check the svn checkout status to make sure that if someone is still working on changes, that they commit the changes they .......
MichaelBalackSenior System Engineer

Author

Commented:
Thanks for Expert Arnold in suggesting the remove WRITE permissions. It works.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial