
optional (for RCS backend): Rcs (librcs-perl) - (since v0.8.0).optional (for SMB backend): Filesys::SmbClient (libfilesys-smbclient-perl) - (since v0.8.0).Module::Load (included in most Linux dists, older need libmodule-load-perl) - (since v0.8.0).IO::Compress::Deflate (included in most Linux dists) - (since v0.7.0).IO::Compress::Gzip (included in most Linux dists) - (since v0.7.0).File::Spec::Link (libfile-copy-link-perl) - (since v0.5.2).Graphics::Magick (libgraphics-magick-perl or ) - (since v0.5.3).Image::Magick (perlmagick) - (since v0.5.1) (since v0.5.3 replaced by Graphics::Magick).Archive::Zip (libarchive-zip-perl) - (since v0.5.0).UUID::Tiny (libuuid-tiny-perl) - (since 0.8.0).OSSP::uuid (libossp-uuid-perl or from ) - (since v0.3.0) (since v0.8.0 replaced by UUID::Tiny).Date::Parse (libtimedate-perl) - (since v0.2.1).DBD::SQLite (libdbd-sqlite3-perl) - (since v0.3.0) DBI (libdbi-perl) and a database driver, e.g.CGI (included in most Linux dists older dists need that: libcgi-perl).install required CPAN modules (Debian/Ubuntu package name):.download WebDAV CGI (note: not necessary for Gentoo).Upgrade Note: Please take a look at the Upgrade section for further information. Note: All steps are done with root rights. Basic authentication as described in the following instruction.WebDAV CGI supports two authentication schemes: You do not need mod_dav for the Apache Web server. WebDAV CGI works only with a UNIX/Linux server (Ubuntu 14.04/16.04 recommended, Windows/MacOS-X not tested and not supported).a little bit configuration: Apache setup (see Installation) and a WebDAV CGI Setup.a Web server software (Apache recommended).a database (SQLite3, PostgreSQL, MySQL.all required Perl modules: see Installation.etc/systemd/system/rvice ĮxecStart=bash -c 'for i in do if ping -c 1 rver. Then, for 15 seconds we test if we can reach the server with ping and only try to mount once successful: Sometimes network-online.target is reached but the domain of your WebDAV server still cannot be found: you can wait until the name lookup succeeds manually.įirst, you need to set up using fstab. Network is online but domain lookup fails If creating/copying files is not possible and/or freezes occur, edit the configuration and mount options to use use_locks 0 as option.ĭefault for this parameter is 1 which locks files on the server when they are opened for writing.īe careful for special characters in passwords such as \ and ". Troubleshooting Creating/copying files not possible and/or freezes Make sure the secrets file contains the correct permissions, for root mounting: etc/davfs2/secrets webdav.example/path davusername davpassword

_netdev mount option could be used to automount network drives.Ĭreate a secrets file to store credentials for a WebDAV-service using ~/.davfs2/secrets for user, and /etc/davfs2/secrets for root: It may be a numeric ID or a user name and only root can mount a uid different from the mounting user. Where username is the owner of the mounted file system. etc/fstab webdav.example/path /mnt/ webdav davfs rw,user,uid= username,noauto 0 0 To define how the webdav resource should be mounted into the filesystem, append a fstab entry under the following format: See Fstab#Automount with systemd for more tips and tricks when using systemd mount units. You can create an systemd automount unit to set a timeout

Note: Ordinary users can mount a davfs2 file system if they are a member of the group dav_group as defined in the system wide configuration, by default the network group. # mount -t davfs http(s)://address:/path /mount/point To mount a WebDAV-resource use mount, not mount.davfs directly. The list of recognised options can be obtained with the following command:Īlso see mount.davfs(8) for description and options. There are also mount options used to define if needed the path of the configuration file, the owner and group of the filesystem and some other options related to file access. All the available options and their syntax can be found in nf(5). There are general, WebDAV related, cache related and debugging options. The latter is read in addition to the system configuration when invoked by an ordinary user and takes precedence. There is a system wide configuration file /etc/davfs2/nf and a user configuration file ~/.davfs2/nf. Mount WebDAV-resource Configuration and mount options

Install davfs2 AUR from official repositories. 4.3 Network is online but domain lookup fails.4.1 Creating/copying files not possible and/or freezes.
