WebDAV

You can access ownCloud directly via WebDAV

Here we will explain how to setup WebDAV access on several Operating Systems. Some applications only allow you to save to a local folder. By mounting ownCloud to a local folder, you can get around this issue.As ownCloud can be installed both in the web servers document root or in a sub-directory, the shorter placeholder ADDRESS will used instead of the full URL to your ownCloud installation.
  • GNU/Linux operating systems
  • Dolphin file manager (KDE, Kubuntu)
  • Windows
  • OS X

GNU/Linux operating systems

First, as an administrator

  1. Install the WebDAV support: sudo apt-get install davfs2
  2. Reconfigure davfs2 to allow access to normal users: sudo dpkg-reconfigure davfs2 (select Yes when prompted)
  3. Add the users you want to be able to mount the share to the davfs2 group: sudo usermod -aG davfs2 <user>
  4. Edit /etc/fstab, and add the following line for each user who wants to mount the folder (with your details where appropriate)
    • For version 1.x: ADDRESS/webdav/owncloud.php /home/<username>/owncloud davfs user,rw,noauto 0 0
    • For version 2.x: ADDRESS/files/webdav.php /home/<username>/owncloud davfs user,rw,noauto 0 0

Then, as each user who wants to mount the folder

  1. Create the folders owncloud & .davfs2 in your home directory
  2. Create the file secrets inside .davfs2, fill it with the following (with your credentials where appropriate)
    • For version 1.x: ADDRESS/webdav/owncloud.php <username> <password>
    • For version 2.x: ADDRESS/files/webdav.php <username> <password>
  3. Ensure the file is only writable by you either through the file manager, or via chmod 600 ~/.davfs2/secrets
  4. Run the command: mount ~/owncloud
  5. To automatically mount the folder on login, add the command you used in step 4 to ~/.bashrc

Known issues:

Resource temporarily unavailable
If you experience trouble when you create a file in the directory, edit /etc/davfs2/davfs2.conf and add use_locks 0
Certificate warnings
If you use a self-signed certificate, you will get a warning. If you are willing to take the risk of a man in the middle attack, run this command instead: echo "y" | mount ~/owncloud > /dev/null 2>&1

Dolphin file manager (KDE, Kubuntu)

  1. Open Dolphin and click on where it says Network in the left hand Places column.
  2. Click on the icon labeled Add a Network Folder
  3. It should come up with WebDAV already selected. Make sure it is and then click Next
  4. Enter the following settings:
    • Name: The name you’ll see in the Places bookmark, for example ownCloud
    • User: Your ownCloud username you use to log in, for example admin
    • Server: Your ownCloud domain name, for example myowncloud.com (without before or directories afterwards)
    • Folder: Enter /files/webdav.php
    • Create icon checkbox: Tick to get a bookmark in the Places column
    • Port & Encrypted checkbox: Leave as it is unless you have special settings or an SSL certificate.
  5. Click Finish and enter your ownCloud password
You’re done! You can now save, load, sync files in your ownCloud through Dolphin and other KDE apps. Awesome!

Windows

Windows XP and Vista should work perfectly fine.In Windows 7, you can map ownCloud as a network folder.
  1. in Services, enable the Webclient service (might be enabled already)
  2. in the Registry, change HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters\BasicAuthLevel from 1 to 2. Then restart Webclient service (Mouse right click -> Restart)
  3. go to My Computer ? Mount Network Drive
    • in the Folder field type ADDRESS/files/webdav.php
    • check Connect using different credentials
However, you have to repeat step 3 after reboot as Windows 7 will not mount the network folder correctly even if the option Reconnect at logon is enabled. Hopefully someone will find a workaround for this.A possible solution to this problem is in Microsoft KB 943280 (support.microsoft.com/kb/943280/en-us).
  1. Click Start, type regedit in the Start Search box, and then press ENTER.
  2. Locate and then click the following registry subkey: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters
  3. On the Edit menu, point to New, and then click Multi-String Value.
  4. Type AuthForwardServerList, and then press ENTER.
  5. On the Edit menu, click Modify.
  6. In the Value data box, type the URL of the server that hosts the Web share, and then click OK.Note You can also type a list of URLs in the Value data box. For more information, see the “Sample URL list” section in this article.
  7. Exit Registry Editor.
From Geeks on Wheels.If you experience slow WebDAV Performance in Windows 7:
  1. In Internet Explorer, open the Tools menu, then click Internet Options.
  2. Select the Connections tab.
  3. Click the LAN Settings button.
  4. Uncheck the “Automatically detect settings” box.
From barracudaserver.com where you can find several other tips for setting up WebDAV on Windows.

OS X

In the Finder, choose Go > “Connect to Server,” type the address of the server in the Server Address field, and click Connect.The server address should be in a form similar to this:ADDRESS/files/webdav.phpSource

Known issues

Zero byte files
Some experience files saved via WebDAV under OS X Lion end up with a size of 0 byte. Currently Finder will only work with apache and mod_php. Any other webserver or fastcgi system will fail. An issue has been filed in the ownCloud bug tracker.