Reply to comment

Subversion with svn+ssh

Setting up subversion with svn+ssh access (non-DAV) on unstable.

In migrating from woody with a combination of CVS and a backport of SVN 1.0 I would like to use SVN 1.1 to get the file system backend (fsfs) instead of BerkleyDB.

Repositories will reside in /repository.

Users that use them will be a member of the repository group.

  • Install subversionapt-get install subversion
  • Set up /repository mkdir repository
    chown root.repository /repository
    chmod 775 /repository
  • Create a repositoryumask 002
    newgrp repository
    svnadmin create --fs-type fsfs /repository/name_of_repository
  • Getting svn+ssh to handle permissions gracefully (handling umask)mv /usr/bin/svnserve /usr/bin/svnserve_realThen create a new file /usr/bin/svnserve with the following contents#!/bin/sh

    umask 002
    /usr/bin/svnserve_real "$@"

    This will set umask so that group permissions are OK. The one annoyance is that you will need to repeat this step each time subversion is updated via an apt upgrade. I keep a copy of this script in /usr/bin/svnserve_wrapper
Technorati Tags:

Reply

  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <embed> <object> <strike> <caption>
  • Lines and paragraphs break automatically.
  • Replace [debbug:xxxxx] with a link to the relevant debian bug.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Insert Flickr images: [flickr-photo:id=230452326,size=s] or [flickr-photoset:id=72157594262419167,size=m].
  • Insert Google Map macro.
  • Images can be added to this post.
  • You can link nodes to other nodes using the following syntax:
    [node:node_id,param_1="val1",param_2="val2"]

More information about formatting options