Creating a new subversion repository with svn+ssh
How to setup a new subversion repository with unix permissions.
Section titled “How to setup a new subversion repository with unix permissions.”Create the unix user and group that will own the repository
Section titled “Create the unix user and group that will own the repository”I’ve chosen svnrepo as the user, and svnusers as the group. Users that want to use the repo will need
to be added to svnusers.
Set the default group of user svnrepo to svnusers.
Add the svnusers group to any users that need to use the repo.
Create the repository
Section titled “Create the repository”Switch to the svnrepo user.
Choose a repository root directory, all subversion files will exist inside here.
svnrepo@turtle:~> svnadmin create /home/svnrepo/demo_projectSecure directory using group permissions
Section titled “Secure directory using group permissions”Use chmod to change the permissions:
svnrepo@turtle:~/demo_project> chmod g+w dbsvnrepo@turtle:~/demo_project> cd dbsvnrepo@turtle:~/demo_project/db> chmod g+w rep-cache.db txn-current-lock transactions/ txn-protorevs/ write-locksvnrepo@turtle:~/demo_project/db> chmod g+w -R revprops/ revs/Now unix users can access the repo using
svn+ssh://turtle/home/svnrepo/demo_project