Difference between revisions of "Davfs"

From ArchWiki
Jump to: navigation, search
m ({{stub}})
(Mounting as regular user: No need for a hash symbol in the fstab file)
(7 intermediate revisions by 6 users not shown)
Line 1: Line 1:
 
{{stub}}
 
{{stub}}
[[Category:File systems (English)]]
+
[[Category:File systems]]
[[Category:HOWTOs (English)]]
+
 
==Introduction==
 
==Introduction==
 
'''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.
 
'''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.
Line 7: Line 6:
 
==Installing DAVfs==
 
==Installing DAVfs==
 
Make sure the [extra] repo is enabled, then run:
 
Make sure the [extra] repo is enabled, then run:
  # pacman -Sy davfs2
+
  # pacman -S davfs2
  
 
==Mounting the partition==
 
==Mounting the partition==
Line 13: Line 12:
 
  # mount.davfs http://localhost:8080/ /mnt/dav
 
  # mount.davfs http://localhost:8080/ /mnt/dav
 
  # mount -t davfs http://localhost:8080/ /mnt/dav
 
  # mount -t davfs http://localhost:8080/ /mnt/dav
 +
 +
==Mounting as regular user==
 +
 +
Add yourself to network group:
 +
# sudo 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

Revision as of 09:00, 12 July 2012

Tango-document-new.pngThis article is a stub.Tango-document-new.png

Notes: please use the first argument of the template to provide more detailed indications. (Discuss in Talk:Davfs#)

Introduction

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

Make sure the [extra] repo is enabled, then run:

# pacman -S davfs2

Mounting the partition

Examples:

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

Mounting as regular user

Add yourself to network group:

# sudo 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