Search:     Advanced search

Using WebDAV with Linux davfs

Article ID: 640  |  Last updated: 12 Aug, 2016

Note: The following information only applies to Surround SCM 2016.0 and earlier.

You can mount a WebDAV directory as a Linux filesystem path.

  1. Download davfs from your Linux distribution or
  2. Create a local directory as the root path of the WebDAV file system. For example: /mnt/dav
  3. Use the mount.davfs command to mount the WebDAV CGI to a local directory. For example:
    mount.davfs http://localhost/cgi/sscmdav.cgi /mnt/dav
  4. Change (cd) to the local directory to access Surround SCM branches, repositories, or files.


Keep the following in mind:

  • Some file editors create temporary files to save your data then try to overwrite the existing file with the temporary file. Surround SCM does not support this functionality. To edit files using WebDAV, copy the file to a local directory, edit the file, then copy the file back to the WebDAV directory.
  • davfs 0.2.4 cannot connect to the WebDAV CGI running on an Apache web server.
  • davfs 0.2.3 and earlier does not release locks when you edit files. Files are permanently locked and checked out exclusively in Surround SCM. To release locks after every PUT operation, add the following line to the sscmdav.xml configuration file within any section:
  • Input/output errors can occur when adding or editing files in davfs 0.2.3 and earlier because of locks on empty files. Use the –o nolocks=1 option on the mount command to ignore empty file locks. For example:
    mount.davfs http://localhost/cgi/sscmdav.cgi /mnt/dav -o nolocks=1
Article ID: 640  |   Last updated: 12 Aug, 2016
Linux WebDAV

Prev   Next
Surround SCM Unix Default Directories, Commands, and...     Surround SCM Cannot Connect to the License Server