VisualSVN Server stores all repositories (and any related data) in a single folder on the local disk (C:\Repositories by default). This article describes how to configure VisualSVN Server to store repositories on a network share.

Perform the following steps to configure VisualSVN Server to store repositories on a network share:

  • Create a folder on a remote computer and share it.
  • Configure required access permissions for the created folder (see below).
  • Set up VisualSVN Server to store repositories in the created folder (see below).

Configuring required access permissions

Required access permissions for the repositories folder stored on a local disk are configured automatically by VisualSVN Server during the installation. If repositories are stored on a network share, you should configure access permissions manually.

Both share and NTFS access permissions should be configured to access NTFS volumes shared over the network.

Access permissions for the repositories folder located on a network share need to be granted to:

  • Account under which VisualSVN Server service is running;
  • VisualSVN Server administrators accounts.

Permissions for VisualSVN Server service account

By default, built-in system Network Service account is used to run VisualSVN Server service. This account has minimum privileges on the local computer and acts as the computer on the network, so you should simply grant access to the computer where VisualSVN Server is installed.

Perform the following steps to grant the required share permissions:

  1. Open Windows Explorer on the remote computer and browse to the required folder.
  2. Right-click the folder name and select Sharing and Security.
  3. Select Share this folder.
  4. Click Permissions.
  5. Click Add.
  6. Click Object Types, select the Computers check box, and click OK.
  7. Specify the name of the account:
    • Specify the name of the computer where VisualSVN Server is installed, if the service is running under built-in Network Service account; or
    • Specify the name of the dedicated user account that is used to run VisualSVN Server service.
  8. Click Check Names to recognize the name of the security principal.
  9. Click OK.
  10. Select the Read and Change check boxes in the permissions list.
  11. Click OK to apply settings.

Perform the following steps to grant the required NTFS permissions:

  1. Open Windows Explorer on the remote computer and browse to the required folder.
  2. Right-click the folder name and select Properties.
  3. Select the Security tab.
  4. If you are using Windows Vista/Server 2008, click Edit (skip this step otherwise).
  5. Click Add.
  6. Click Object Types, select the Computers check box, and click OK.
  7. Specify the name of the account:
    • Specify the name of the computer where VisualSVN Server is installed, if the service is running under built-in Network Service account; or
    • Specify the name of the dedicated user account that is used to run VisualSVN Server service.
  8. Click Check Names to recognize the name of the security principal.
  9. Click OK.
  10. Select the Modify check box in the permissions list.
  11. Click OK to apply settings.

Permissions for VisualSVN Server administrators

In most cases it is recommended to grant Full Control access permission for the repositories folder to domain administrators.

You can also grant appropriate read/write permissions to non-admin domain users that are authorized to manage VisualSVN Server using VisualSVN Server Manager console. Particular permissions settings depend on your domain configuration.

Note
Note It is a good practice to set up VisualSVN Server service to run under a dedicated user account. This improves isolation of VisualSVN Server service from other services that can be run under Network Service built-in account. See KB24 for details on configuring VisualSVN Server service to run under a dedicated user account.

Setting up VisualSVN Server to store repositories in a remote folder

To set up VisualSVN Server to store repositories in a remote folder:

  1. Open VisualSVN Server Manager.
  2. Right-click the VisualSVN Server node and select Properties.
  3. On the Storage tab, specify the Repositories Root path browsing to the required remote folder, if necessary.
  4. Click OK.
Warning
Important Make sure that network path to your repositories folder is specified in the UNC format. Mapped network drives are not supported as they are mapped on a per-user basis and are not available for built-in accounts such as Network Service.
Last Modified: