Setting up security for svnserve

You must set up a basic security for svnserve and help prevent accidental updates or deletions from the repository. You will also be able to identify in the resource history of Subclipse the user ID and audit trail of changes committed to the repository. In this procedure, the top folder structure C:\repository\M3_folder_v1 will be used as an example.

Use this procedure to set up security for svnserve.

  1. Locate the file svnserve.conf in your repository.

    This file will be located in the folder: C:\repository\M3_folder_v1\conf.

  2. Edit the file and add entries necessary to set the read and write access to the repository. For example, you can add these entries:
    [general]
    anon-access = read
    auth-access = write
    password-db = passwd

    In this example, all users can read the repository, but only authorized users can update the repository.

  3. Comment out all other lines in the file using the hashtag '#' character.
  4. Locate the file passwd.

    Look in the same folder: C:\repository\M3_folder_v1\conf.

  5. Edit the file and add entries necessary to name the authorized users. For example, you can add these entries substituting the names of your own users:
    [users]
    harry = harryssecret
    sally = sallyssecret