We're using subversion with the svn+ssh protocol, and we need to setup a new repository which only certain users will have access to.
After reading through the manual, it seemed that I needed to configure the conf/svnserve.conf file to use a users file, and then setup the allowed users there.
Well, finally it turns out that because we're tunneling our svn, it's really just controlled by the file permissions. Since our server's hosted on linux, I:
- Created a new group [sudo addgroup restricted]
- Added the appropriate users to that new group
- Set the owner on the svn repository directory [sudo chown -R svn.restricted /path/to/repository]
- Set the file permissions on the svn repository directory [sudo chmod -R o-rwx /path/to/repository]
No comments:
Post a Comment