Humanoids SVN Permissions |
| Submitted by jscholz on Wed, 2010-02-17 16:29 |
On the current svn server we use, the lab's own "thebrain.cc.gt.atl.ga.us", there are 2 things to set when managing users.
- add system username
- add webdav user
All users need to exist on the system:
$ sudo adduser username
This user also needs to be in the svn group to have write permissions to the svn ONLY WHEN USING svn+ssh. I.E., the owner/group of /home/svn/humanoids are www-data/svn. To support this protocol, the user needs write access via the svn group to do commits:
$ sudo usermod -a -G svn username
This will allow users to access the repo at the url svn+ssh://thebrain.cc.gt.atl.ga.us/svn
Now, to allow access via https, we need to add a webdav account for this user as well. This is the preferred method of access, since it's how we enforce user directory-based permissions.
$ sudo htpasswd /etc/subversion/passwd username
Rather than doing user-based permissions, i actually set up a humanoids group for webdav access, so you'll have to add the new user to this as well. To do this, open the file /etc/subversion/dav_svn.authz and add the username that you added using htpasswd to the humanoids group on line 11 (this username should really match the system user to avoid confusion). For a standard lab user, this is all that's necessary. To be fancy with authz, see instructions here.
This will allow users to access the repo at the url https://thebrain.cc.gt.atl.ga.us/svn







