There is a tool that allows to locally mount remote DAV repositories under Linux, so it appears in the local directory tree. http://dav.sourceforge.net/
I had a really hard time trying to sort out how to make it work, given the scarce information, somethimes in contradiction with the actual system behavior. So this is a minimalistic procedure to get it running.
Note: This was on Mandriva Linux 2007. Our tutorial is aimed at mounting WebDAV URL https://dav.test.com/share/ by a simple user (“username”) so that he can actually upload files on server.
In procedures below we use # to note commands to be run as root and $ for UserName’s commands.
Preparation
- Install davfs2 package
- # modprobe coda
Test root mounting
- # mkdir /mnt/DAV
- # mount.davfs2 https://dav.test.com/share/ /mnt/DAV
- You should now be able to browse the /mnt/DAV and alter files in there. If not verify your server configuration.
- # umount /mnt/DAV
Important: There must be no “/” at end of URL. Note that if you use an alias on the http server for this WebDAV repository, it must not have an ending “/” on the server configuration file….
Allow users to mount the repository
- Add username to the users group, and relog it if needed
- $ mkdir ~/.davfs2/ ~/mnt/DAV/
- # cp /etc/davfs2/secrets ~username/.davfs2/
- # chown username: ~username/.davfs2/secrets
- Add the credentials to ~username/.davfs2/secrets following comments in there:
https://dav.test.com/shareusernameSeCret - As root add the following line in /etc/fstab:
https://dav.test.com/share /home/username/mnt/DAV/ davfs2 user,noauto 0 0
That done, UserName should be able to mount the repository using:
mount /home/username/mnt/DAV/
March 28, 2007 at 2:44 pm |
OK I’ll try that tonite
December 4, 2007 at 4:51 pm |
Totally works. Excellent, and thank you kindly.
Julian
November 30, 2008 at 1:05 am |
[...] WebDAV mounting under Linux « Cam’s Blog, yes Sir There is a tool that allows to locally mount remote DAV repositories under Linux, so it appears in the local directory tree. (tags: tutorial webdav) [...]
June 8, 2009 at 6:33 pm |
Hi,
I am able to mount it but I am gettin hundreds of following error
mount.davfs: open files exceed max cache size by 1653 MiBytes
Thanks in advance.
September 14, 2009 at 9:13 pm |
I found this page because of error “mount.davfs: open files exceed max cache size”…
I also use davfs (to backup files every night to mediacenter of gmx). I also have a huge amount of these errors. Any idea?
Alex, did you find a solution?