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

» How to Create Personal Folders in Microsoft Outlook 2010

Personal folders are a good way to store email on a hard drive such that they are not affected by an exchange server's retention policy.  Creating a personal folder is Outlook 2010 is easy, but not straight forward.  Here's how to do it:First, open Outlook and navigate to the File tab.  Click the "Account Settings" button, and choose the "Account Settings..." option the dropdown menu.Navigate to the "Data Files" tab, and click the "Add" button:You will see a prompt to save a new...

» Troubleshooting CIFS Sign In Issue on LG Blu-ray Players

Most LG Blu-ray players provdie a useful interface for streaming media off of a home network.  The interface is sometimes called 'Home Link"; in other players it's simply under Movie or Music.  In both cases, shared folders under a network computer may not actually show up, and when the network computer is selected, a "CIFS Sign In" prompt will show up.  CIFS is a standard for remotely sharing files, but the sign in prompt is a sympton of another issue which can be fixed....

» How to edit remote files with WinSCP and Notepad++ (or any other editor..)

Have you ever wondered how to edit a remote file in a Linux environment while you are working in a windows environment? Or maybe just want to edit a file directly from an FTP client? If so, WinSCP is for you!  is an open source FTP, SFTP, and SCP client with a graphical interface. You can download the latest version of WinSCP here: . In this tutorial, I will be using (which can be found here: ). However, you may substitute any text editor you would like! To use Notepad++ with...