Mount a WebDAV filesystem (like box.net) on Linux using davfs2

(0 votes, average 0 out of 5)

You can easily mount a WebDAV filesystem on Linux so that you can access the files just like they were on your local computer. One way to do is to install the davfs2 package (this is the Ubuntu/Debian package name, though it should be similar for other distros). Once you have installed it, add an entry to /etc/davfs2/secrets with your login credentials for the WebDAV account. For box.net, the command would look like this:

sudo echo “https://www.box.net/dav username password” >> /etc/davfs2/secrets

You need to choose a mountpoint on your local filesystem for the WebDAV mount. In this example I am going to use /mnt/box.net, so go ahead and create the directory:

mkdir /media/box.net

Now add an entry to /etc/fstab for this filesystem, which will allow you to automatically mount it at boot time. If you want your normal user (instead of just root) to have write access, specify your uid (username) and gid (can be the same as your username) on the mount line along with your newly-created mountpoint:

https://www.box.net/dav /mnt/box.net    davfs   defaults,uid=username,gid=username  0       0
Save your changes to /etc/fstab and now try mounting your remote filesystem. It should mount successfully and now be accessible at your mountpoint. Note: if you have trouble writing files to the WebDAV filesystem, take a look at this article for a solution.

 

Partner Links:
Last Updated on Sunday, 20 November 2011 00:14  
Related Articles

» ASP.NET Error: Cannot create/shadow copy when that file already exists.

 Occasionally when using a debugger in ASP.NET (or shortly after using the debugger), your solution may return the following error when viewing in a browser:Cannot create/shadow copy when that file already exists.This is a problem rooted in how solutions build for ASP.NET - they are often built into binaries that are placed in a "shadow" location so that the user may continue editing and saving the code without any consequence to the current built solution.  Sometimes this process will...

» Setup DSL to work with Linksys WRT54g or other router

So you have your DSL modem from AT&T, SBC Global, TDS, or other provider working on your PC directly and you want to set it up to work with your router (Linksys WRT54g / WRT54gl or other router) instead and can't find straight forward instructions on how to do this right?  Following these simple steps, we should be able to get your internet up and running through your router with relative ease.  The following steps are written for AT&T and a WRT54gl router, but should be...

» How to Setup and Secure a Wireless Network Using a Linksys Router

First thing to do is setup your router. Make sure you hook up the power cable, the modem, and all wired computers to the router. Once this has been done, verify that you can see the wireless network associated with your router. A newly created network will most likely be named 'linksys'.Open a web browser on one of the computers connected to the network. Once the web browser is open, type http://192.168.1.1 into the address bar. This will take you to the routers build-in administrator portal....