From ArchWiki
Revision as of 11:59, 1 June 2013 by Flu (talk | contribs) (format)
Jump to: navigation, search

DAVfs is a Linux file system driver that allows you to mount a WebDAV server as a disk drive. WebDAV is an extension to HTTP/1.1 that allows remote collaborative authoring of Web resources, defined in RFC 4918.

Installing DAVfs

Install davfs2 from official repositories.

Mounting the partition


# mount.davfs http://localhost:8080/ /mnt/dav
# mount -t davfs http://localhost:8080/ /mnt/dav

Mounting as regular user

Add yourself to network group:

# usermod -a -G network username

Add webdav entry to /etc/fstab:

https://webdav.example.com /home/username/webdav davfs user,noauto,uid=username,file_mode=600,dir_mode=700 0 1

Create secrets file in your home:

# mkdir ~/.davfs2/
# echo "https://webdav.example.com webdavuser webdavpassword" >> ~/.davfs2/secrets 
# chmod 0600 ~/.davfs2/secrets

Now you should be able to mount and unmount ~/webdav:

# mount ~/webdav
# fusermount -u ~/webdav