Changes between Version 2 and Version 3 of Subversion
- Timestamp:
- 12/22/08 12:34:36 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Subversion
v2 v3 19 19 }}} 20 20 21 = Setting up access rights = 22 I currently create a new group for each repository and assign users to the group if they need read/write access. 23 {{{ 24 cd /var/svn/ 25 chmod -R 770 repos 26 chmod -R g+s repos/db 27 chgrp -R svngrp repos 28 }}} 29 (svngrp is the group name that I created in /etc/group to hold the svn users) 21 30 22 = Setting up access rights = 23 Setting up a new repository. I currently create a new group for each repository and assign users to the group if they need read/write access. 31 Edit /etc/groups and add the users to the group svngrp 32 33 34 Edit /var/svn/repos/conf/svnserve.conf (and set the following parameters) 24 35 {{{ 25 1) cd /var/svn 26 2) mkdir foorepo 27 3) svnadmin create foorepo 28 4) chmod -R 770 foorepo 29 5) chmod -R g+s foorepo/db 30 6) chgrp -R svn-foorepo foorepo 31 (svn-foorepo is the group name that I created in /etc/group to hold the svn users) 36 anon-access = read 37 auth-access = write 38 password-db = passwd 39 realm = TTD_SVN 32 40 }}} 41 Edit /var/svn/repos/conf/passwd and add the users (see examples) 42 43 = Setting up SSH access = 44 Users that use the svn need to have ssh access set up correctly to the server. This has to be done by ssh-keys. 45 46 See http://linuxproblem.org/art_9.html 47