davfs2.conf(5)
πΈ davfs2.conf(5) πΈ
okay bestie, welcome to the manual page for davfs2.conf, version 1.7.3 β it's the config file for mount.davfs. Let's get into it π
β¨ NAME β¨
davfs2.conf β the configuration file for mount.davfs. periodt.
π« DESCRIPTION π«
There's a system wide configuration file at /etc/davfs2/davfs2.conf and user configuration files at ~/.davfs2/davfs2.conf. When mount.davfs is invoked by root, only the system wide configuration file is read. When invoked by an ordinary user, the user configuration file is read in addition. Settings from the user configuration file will take precedence over the system wide configuration. iykyk.
The configuration file consists of lines where each line contains a keyword value pair. Keyword and value are separated by spaces and/or tabs. simple as that.
The file may contain sections that are for one specific mount point only. Such a section starts with a line, that contains the full path of the mount point enclosed in square brackets. The section ends at the start of the next section or the end of file. Options that shall apply to all mounted file system must come before the first sections. Options given in a mount specific section will have precedence. π
π EXAMPLE π
proxy foo.bar:8080
use_locks 0
[/media/dav]
use_locks 1
[/home/otto/mywebspace]
gui_optimize 1
All mounted davfs2 file systems will use the proxy foo.bar. All davfs2 file systems except /media/dav will disable the use of the locks. /home/otto/mywebspace will use the gui_optimize option. slay.
π GENERAL SYNTAX RULES π
Lines that only contain spaces and tabs (empty lines) are ignored. no cap.
# indicates a comment. The rest of the line is ignored.
\ is the escape character.
"" is used for quotation.
If a value contains one of the special characters space, tab, #, \, or ", this character must be escaped by a preceding \. Use β\ β instead of β β, β\#β instead of β#β, β\\β instead of β\β and β\"β instead of β"β.
Values containing spaces, tabs or # may instead be enclosed in double quotes. But " and β must be escaped even within double quotes. If the starting line of a section is enclosed in double quotes, the square brackets must be within the quotes (like "[/home/otto/with space]").
Boolean option values (yes/no) must be given as numerical value. 0 for no, 1 for yes.
π AVAILABLE CONFIGURATION OPTIONS π
β¨ General Options β¨
dav_userβ When invoked by root themount.davfsdaemon will run as this user. Value must be given as name, not as numerical id. Default:davfs2. Only allowed in the system wide configuration file. π«Άdav_groupβ The group of the runningmount.davfsdaemon. Ordinary users must be member of this group in order to mount a davfs2 file system. Value must be given as name, not as numerical id. Default:davfs2. Only allowed in the system wide configuration file.buf_sizeβ Size in KiByte of the buffer used to communicate with the kernel file system. Only useful with fuse, where read and write operations may profit from a larger buffer. Default:16.
π¦ WebDAV Related Options π¦
use_proxyβ Whether to use a proxy to connect to the WebDAV server.0= no,1= yes. If no proxy is defined in the configuration file or the environment variableshttps_proxy,http_proxyandall_proxy, this option has no effect. Default:1. Only allowed in the system wide configuration file.proxyβ Name of the proxy. The name must be the fully qualified domain name (no scheme). If the proxy port differs from the default of8080, it must be appended, separated by a colon. Examples:foo.bar:1704orfoo.bar. Only allowed in the system wide configuration file.trust_ca_certβ Name of a certificate file in PEM format. The name of the file may be given as absolute path or as file name only. In the latter case the directories~/.davfs2/certsand/etc/davfs2/certswill be searched. This option is useful when the certificate presented by the server cannot be verified using the system's data base of trusted certificate authorities (CA). The certificate file must contain the self-signed certificate of the top level CA in the chain of trust. It may be a self-signed server certificate (but see alsotrust_server_cert). With this option the system's CA data base is ignored. Note: Even if the server's certificate is trusted that does not mean it is accepted. Additionally the certificate's date must be valid and either the CommonName or the SubjectAltName must match the host name of the server.servercertβ Same astrust_ca_certbut badly named. Deprecated. πtrust_server_certβ Name of a certificate file in PEM format. The name of the file may be given as absolute path or as file name only. In the latter case the directories~/.davfs2/certsand/etc/davfs2/certswill be searched. Useful when the server's certificate can't be verified or is even invalid, but you know that you can trust this certificate. When the server presents a certificate that is exactly equal to this one and when the server is able to authenticate against the public key contained in this certificate the connection will be established. This is the preferred option for self signed server certificates. No other ways to verify the certificate will be tried and the certificate will not be checked for validity.clientcertβ Name of a certificate in PKCS#12 format that will be used to authenticate with the server. The name of the file may be given as absolute path or as file name only. In the latter case the directories~/.davfs2/certs/privateand/etc/davfs2/certs/privatewill be searched. Warning: If the client certificate is issued by an intermediary CA and not by a top level CA then the TLS-specification requires the client to send the complete chain of certificates (without the top level CA-certificate). davfs2 only sends the client certificate. To work around this bug the server must store and trust the complete chain of CA-certificates down to the one CA that issued the client certificate. πsecretsβ Name of a file that holds the credentials for servers and the proxy, and passwords to decrypt the client certificate. The name must be an absolute path. The file must be read and writable by the owner only (mode600). Default:~/.davfs2/secrets. Only allowed in the user configuration file. The system wide secrets file is always/etc/davfs2/secrets.ask_authβ Ask the user interactively for credentials and passwords if not found in the secretsfile. Ask the user if a servercert cannot be verified.0= no,1= yes. Default:1.use_locksβ Whether to lock files on the server when they are opened for writing.0= no,1= yes. Default:1.lock_ownerβ A string send to the server to identify the owner of a lock. If a WebDAV resource is used at the same time by different clients using the same credentials, different values forlock_ownershould be chosen. Default: the username from the credentials.lock_timeoutβ How long in seconds locks should be valid, before the server removes them. The server may ignore this and set its own timeout value. Default:1800.lock_refreshβ That many seconds before the lock times out,mount.davfswill try to refresh the lock. The value should be substantially greater thandelay_upload. Default:60.use_expect100β To avoid uploading big files that will be refused by the server,mount.davfsuses the headerexpect: 100-continueto get the o.k. from the server before uploading. Not all servers understand this.0= no,1= yes. Default:0.if_match_bugβ Some servers do not handleIf-MatchandIf-None-Match-headerscorrectly. This option tellsmount.davfsto useHEADinstead of these headers.0= no,1= yes. Default:0.drop_weak_etagsβ Popular servers send a weak etag whenever they are not able to calculate a strong one. This weak etag will never be valid, but after one second it is silently turned into a strong, valid etag. With this flag set to1,mount.davfswill never use this weak etags. If the flag is0, the weakness indicator will be removed and the etag is assumed to be strong. There is some danger of the Lost-Update-Problem with this. But it is minimized when using locks. You should turn this on, when you can't use locks and there is the danger of concurrent access to the same resource. In this case the etag is not used at all and the resource cannot be cached.0= no,1= yes. Default:0.n_cookiesβ Some servers will only work when they are allowed to set a cookie and this cookie is returned in subsequent requests. This option sets the number of cookies you are willing to accept and include in subsequent requests. davfs2 will only care for the name and the value of the cookie and ignore all of the possible attributes. Default:0.precheckβ If optionif_match_bugis set: useHEAD-requests to check for existence or modification of a file to avoid unintended overwriting what somebody else changed. Has no effect if optionif_match_bugis0. You should only set it0, if there is no concurrent access to the server.0= no,1= yes. Default:1.ignore_dav_headerβ Some servers send wrong information about their capabilities in theDAV-header. In this case the header should be ignored. Default:0.use_compressionβ Use gzip-compression for downloading files, if supported by the server. Uploads will still be uncompressed. Default:0.min_propsetβ bestie, some servers literally slow to a crawl when you ask them for theEtagandLast-Modifiedproperties π so this option trims the set of WebDAV-properties requested from the server down to the absolute minimum. But do NOT use it if your file system is used for reading and writing. WithoutEtagorLast-Modified, davfs2 has zero way to check for changes on the server, which may result in unnecessary downloads and lost updates π. This option will also effectively disable caching of files, because files in the cache can't be reused. Default:0follow_redirectβ if the server redirects aGET-request to a different resource (maybe on a different server), then follow that redirection. Currently there are some restrictions: all redirects are treated as temporary redirects; if the new server requires authentication then the same credentials are used as for the original server; if the connection is over TLS the server certificate will be checked against the trusted CAs known by the system; user configured server certificates and client certificates are not used for the new server. Default:0sharepoint_href_bugβ SharePoint does not properly encode UTF8-characters within thehref-element π« Because of this some files are invisible, because thehref-element violates the rules. Neon0.31and newer has a workaround for this SharePoint bug, and this option activates that workaround. Default:0server_charsetβ when extracting file names from the path component of the URL,mount.davfswill assume they are encoded using this character set and translate file names to the local character set. This is not about encoding of file contents and not about HTTP escaping rules, okay? iykyk. There is no means in HTTP to know the character encoding of the path component. There may even be different encodings within the same path, since the encoding of file names is often defined by the clients that created them. Nowadays it is best to use only UTF-8 encoding and to do no conversion. If you are not sure that all clients understand UTF-8, restrict file names to pureus-ascii. Never use characters in file names that may have a special function on some operating systems (like/,:and\). Default: no character set conversionconnect_timeoutβ when creating a TCP connection to the server,mount.davfswill wait that many seconds for an answer before assuming an error β³ If a value of0is used then no explicit timeout handling is set and the connect call will only timeout as dictated by the TCP stack. This parameter only takes effect if the version of neon in use (neon version >0.26) and the OS support non-blocking I/O. Default:10read_timeoutβ how long, in seconds,mount.davfswill wait for an answer from the server before assuming an error. Default:30retryβ whenmount.davfscan not reach the server it will try again afterretryseconds. For subsequent retries the interval will be increased up tomax_retryseconds. Default:30max_retryβ maximum value of the retry interval. Default:300max_upload_attemptsβ when uploading a changed file fails temporarily,mount.davfswill retry with increasing intervals, but not more often than this. With a bad connection this will cause additional traffic π To reduce traffic caused by unsuccessful attempts, optionuse_expect100can be set. But please test it β most proxies and some servers don't support this header. Default:15add_headerβ your server might expect special headers to do what you want π Different from other options, this one takes two values: the name of the header and its value. Some ASP-backends to IIS seem to require the Microsoft specific header"Translate: F". You can add it like this:
add_header Translate F
mount.davfs will add header "Translate: F" on all requests. This option is cumulative β you can enter more than one add_header option and all of them will be added. Also add_header options from /etc/davfs2/davfs2.conf and ~/.davfs2/davfs2.conf are merged π«Ά
π Cache Related Options π
backup_dirβ each mounted davfs2 file system has a directory to store backups of files that could not be stored back to the server. This sets the name of this directory. You should regularly check this directory. Default:lost+foundcache_dirβ the directory wheremount.davfswill store cached files. For every mount point a subdirectory will be created. In the systemwide configuration file this will set the system wide cache, used by root. In a users configuration file it will set the cache used by this user. Defaults:/var/cache/davfs2and~/.davfs2/cachecache_sizeβ the amount of disk space in MiByte that may be used.mount.davfswill always take enough space to cache open files, ignoring this value if necessary π Default:50table_sizeβmount.davfsmaintains a hash table with an entry for each known file or directory. This gives the number of entries in this table. For large file systems (more than some hundreds of files) increasing this number may speed up file operations. The value should be a power of2. Default:1024dir_refreshβ aftermount.davfshas got information about files in a directory, it considers it valid for this time in seconds. Note: this does not affect opening of files and reading a directory by an application. Default:60file_refreshβ when a file or directory is opened by an application,mount.davfswill first check the server for a newer version. But some applications do open calls on the same file in short sequence π To avoid unnecessary trafficmount.davfswill wait that many seconds before it sends a new request for the same information. Default:1delay_uploadβ when a file that has been changed is closed,mount.davfswill wait that many seconds before it will upload it to the server. This will avoid uploading of temporary files that will be removed immediately after closing. If you need the files to appear on the server immediately after closing, set this option to0. Default:10gui_optimizeβ when a file is opened,mount.davfswill have to check the server whether there is a newer version. Graphical User Interfaces tend to open just any file, slowing down things dramatically for large directories π With this optionmount.davfswill try to get this information from all files in a directory with onePROPFINDrequest.0= no,1= yes. Default:0minimize_memβ davfs2 holds information about files and directories in the working memory. It will stay there as long as the file system is mounted and the file is not deleted. By this, memory usage by davfs2 will grow over time and may slow down davfs2. With this option set to1, davfs2 will regularly clean the memory from information that has not been used for some time.0= no,1= yes.
Warning: Most file attributes are only maintained locally, because there is no corresponding WebDAV property. So if users change attributes (owner, group, access bits) locally, these changes will be lost and attribute values will be reset to the default values.
Default: 0
π Debugging Options π
debugβ send debug messages to the syslog daemon. The value tells what kind of information shall be logged. The messages are sent with facilityLOG_DAEMONand priorityLOG_DEBUG. It depends from the configuration of the syslog daemon where the messages will go (propably/var/log/messages,/var/log/syslogor/var/log/daemon.log). Whether HTTP related debug messages are available depends on your neon library. Unlike other options, this option is cumulative. If there are severaldebugentries with different values, all of them will be applied. Alsodebugoptions from/etc/davfs2/davfs2.confand~/.davfs2/davfs2.confare merged. Note: debug messages let the log-files grow quickly. Never use this option in normal operation ofmount.davfs. Default: no debugging messages
Recognized values:
configβ command line and configuration options.kernelβ upcalls from the kernel file system.cacheβ cache operations like adding and removing nodes.httpβ HTTP headers.xmlβ parsing of the XML-body of WebDAV-requests.httpauthβ negotiation of authentication.locksβ information about locks.sslβ TLS/SSL related stuff like certificates.httpbodyβ complete body of HTTP-responses.secretsβ also print confidential information, which is usually omitted or obscured πmostβ includesconfig,kernel,cacheandhttp.
π AUTHORS π
This man page was written by by Werner Baumann <werner.baumann@onlinehome.de> π
π DAVFS2 HOME π
https://github.com/alisarctl/davfs2
β SEE ALSO β
mount.davfs(8), umount.davfs(8), mount(8), umount(8), fstab(5)
and that's the whole page bestie, you ate π this was davfs2.conf(5) from the davfs2 package, dated 2020-08-06 β¨ now go mount something iconic π
π¦ where this page comes from
- fedora 44: davfs2 1.7.3-1.fc44 Β· GPL-3.0-or-later
- nixos 26.05: davfs2 1.7.3
- nixpkgs unstable: davfs2 1.7.3
- ubuntu stonking: davfs2 1.7.3-1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms