This page has moved. Please update your links:http://linuxsagas.digitaleagle.net/2008/09/09/webdav-and-fstab/
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.
401 Unauthorized
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.
February 4, 2010 at 8:14 pm
[…] Quelle: https://linuxsagas.wordpress.com/2008/09/09/webdav-and-fstab/ […]
May 26, 2010 at 10:01 pm
Thanks!
January 3, 2011 at 1:59 am
[…] WebDav and fstab September 2008 2 comments 5 […]
December 17, 2011 at 5:16 am
[…] https://linuxsagas.wordpress.com/2008/09/09/webdav-and-fstab/ […]
June 4, 2012 at 8:47 am
to fix the error with the setuid you can run “dpkg-reconfigure davfs2”
it’s an option during the package installation but you don’t get to see it (would have to bump up verbosity)
see here: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=573241