We have a webdav enabled web site that I wanted to connect to on a regular basis. I wanted it to mount on my filesystem as opposed to just using it in nautilus so that I could use meld to copy files to it.
So, I added a line to the end of /etc/fstab (sudo gvim /etc/fstab):
https://mywebsite/~docs /dir/to/mount/on davfs user,noauto,rw 0 0
Then, I added the following line to /etc/davfs2/secrets:
https://mywebsite/~docs myusername mypassword
Originally, I had just the unsecure http:// url. But, it gave me this error:
/sbin/mount.davfs: Mounting failed.
I fixed it by changing the urls to https://.
When I mounted it as root, it worked fine. But, when I mounted it as my regular user, I got this message:
/sbin/mount.davfs: program is not setuid root
To fix it, I had to run this command:
sudo chmod u+s /sbin/mount.davfs
Then, I changed the file /etc/davfs2/davfs2.conf. I changed the dav_group setting. For me, I found a line that said “dav_group staff”. I replaced staff with my username, which is my default group. The thread I read mentioned using the users group.