Using WebDAV to access files on a Fedora system

Dropbox is by far the leader in the consumer “cloud storage” space; It is simple to use, feature rich and just works! But, there is only so much you can do with the provided 2 Gb free storage.

Enter:  — which has offered (for a limited period) 50 Gb free, lifetime storage, for all Ipone and Ipad users. Check here for the details.

However, I soon found out that does not provide syncing features that Dropbox is so good at, and there are no clients for Linux.

Lucky, for Linux users, a WebDAV interface exists.

I used fedora 15, but the instructions are generic enough that they should work on any release or any Linux distribution for that matter.

1. Create a folder to mount the share :

$ mkdir ~/box

2. Install davfs2 :

$ sudo yum install davfs2
Note : Nautilus does support webdav, but I’ve found it to be buggy.

3. Run the following to add your user to the davfs2 group :

$ sudo /sbin/usermod -a -G davfs2 "username"

4. Disable locking, as this causes problems with :

$ mkdir ~/.davfs2
$ vi ~/.davfs2/davfs2.conf

and add the following :

use_locks 0

5. (Optional) If you do not want to be prompted for the username/password :

$ vi ~/.davfs2/secrets

and add the following :   password

6. Add the following entry to /etc/fstab :

$ sudo vi /etc/fstab /home/"username"/box  davfs rw,user,noauto 0 0
Note: Don’t forget to replace “username” with your actual username.

7. Finally, to mount the folder run :

$ mount  ~/box

and the files from your account should be visible.

Use “rsync”, “unison”, or just plain “cp” to sync files directly to I find this very convenient for backups and file sharing.


2 thoughts on “Using WebDAV to access files on a Fedora system

  1. Just to help the next guy, three things:

    1) should update box web address:

    2) should note ~/.davfs2/secrets needs to belong to your user and group
    $ sudo chown user:user ~/davfs2/secrets
    and also should only have 600 permissions ie.
    $ chmod 600 ~/davfs2/secrets

    3) you should log out and log back in after adding yourself to davfs2 group
    ie. step 3
    $ sudo /sbin/usermod -a -G davfs2 “username”


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s