| | 1 | = How do I setup an SVN repository for a member on Allende? = |
| | 2 | |
| | 3 | These instructions are for May First/People Link administrators and require special privileges to run. |
| | 4 | |
| | 5 | Big picture: these instructions will result in a single user account on allende that multiple people can use for accessing a subversion repository. Replace the variable $GROUPNAME with the actual group name you are creating. |
| | 6 | |
| | 7 | * Login to allende and create a new user account - create a long random pasword (it won't be used) |
| | 8 | {{{ |
| | 9 | adduser $GROUPNAME |
| | 10 | }}} |
| | 11 | * Edit the /home/$GROUPNAME/.ssh/authorized_keys file. Add the keys of the people who should have access. Preceding each key should be (replace $USER with the name of the key's owner - this name will be used to attribute changes made by the person owning the public key: |
| | 12 | {{{ |
| | 13 | command="svnserve -t --tunnel-user=$USER -r/srv/svn/nacla",no-port-forwarding,no-agent-forwarding,no-X11-forwarding,no-pty |
| | 14 | |
| | 15 | For example: |
| | 16 | command="svnserve -t --tunnel-user=jamie -r/srv/svn/nacla",no-port-forwarding,no-agent-forwarding,no-X11-forwarding,no-pty ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEA3Hk0plzcZ1v69ugNGpp8CwcEqdUz4FxhhbjhfOKqqLYfiUEC3e9j2EDWXkYBZUQecVgF9mxKdzhvUeGoYyJs6jdyOCbtfpo4qFRZrnsiH0GljTpLyM09mhhN8KHiLaQbgEPbQb5Zk7okAgMzR/hINjZzT0+0KC/V4hsHySjxoJ8= jamie@liberace |
| | 17 | }}} |
| | 18 | * Create the group repository (FIXME How do you do this??) |
| | 19 | * Ensure proper permissions of the repository: |
| | 20 | {{{ |
| | 21 | chgrp $GROUPNAME /srv/svn/$GROUPNAME |
| | 22 | chmod 775 /srv/svn/$GROUPNAME |
| | 23 | }}} |
| | 24 | * Create initial directories (you should put your own public key (temporarily) in the authorized_keys file so you can do this from your local computer: |
| | 25 | {{{ |
| | 26 | svn mkdir svn+ssh://$GROUPNAME@svn.mayfirst.org/{trunk,tags,branches,sandbox} |
| | 27 | }}} |