Loading...
 

Setting up SVN

Directory Structure

Creating a repo will need the following setup

/svn/repo/conf
/svn/repo/dav
/svn/repo/db
/svn/repo/format
/svn/repo/hooks
/svn/repo/locks

Configuration

/svn/repo/conf/authz

svn@zabbix conf$ cat *

      1. This file is an example authorization file for svnserve.
      2. Its format is identical to that of mod_authz_svn authorization
      3. files.
      4. As shown below each section defines authorizations for the path and
      5. (optional) repository specified by the section name.
      6. The authorizations follow. An authorization line can refer to a
      7. single user, to a group of users defined in a special groups
      8. section, or to anyone using the ‘*’ wildcard. Each definition can
      9. grant read (‘r’) access, read-write (‘rw’) access, or no access
      10. (‘’).


groups

  1. harry_and_sally = harry,sally

  1. /foo/bar
  2. harry = rw
  3. * =

  1. repository:/baz/fuz
  2. @harry_and_sally = rw
  3. * = r

/svn/repo/conf/passwd

      1. This file is an example password file for svnserve.
      2. Its format is similar to that of svnserve.conf. As shown in the
      3. example below it contains one section labelled users.
      4. The name and password for each user follow, one account per line.


users

  1. harry = harryssecret
  2. sally = sallyssecret


auser = auserspassword
anotheruser = andtheirpasswd

/svn/repo/conf/svnserve.conf

      1. This file controls the configuration of the svnserve daemon, if you
      2. use it to allow access to this repository. (If you only allow
      3. access through http: and/or file: URLs, then this file is
      4. irrelevant.)

      1. Visit http://subversion.tigris.org/ for more information.


general

      1. These options control access to the repository for unauthenticated
      2. and authenticated users. Valid values are “write”, “read”,
      3. and “none”. The sample settings below are the defaults.
  1. anon-access = read
  2. auth-access = write
      1. The password-db option controls the location of the password
      2. database file. Unless you specify a path starting with a /,
      3. the file’s location is relative to the conf directory.
      4. Uncomment the line below to use the default password file.
  3. password-db = passwd
      1. The authz-db option controls the location of the authorization
      2. rules for path-based access control. Unless you specify a path
      3. starting with a /, the file’s location is relative to the conf
      4. directory. If you don’t specify an authz-db, no path-based access
      5. control is done.
      6. Uncomment the line below to use the default authorization file.
  4. authz-db = authz
      1. This option specifies the authentication realm of the repository.
      2. If two repositories have the same authentication realm, they should
      3. have the same password database, and vice versa. The default realm
      4. is repository’s uuid.
  5. realm = My First Repository


anon-access = none
auth-access = write
password-db = passwd

  1. authz-db = authz