Mount a WebDAV filesystem (like 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, the command would look like this:

sudo echo “ 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/, so go ahead and create the directory:

mkdir /media/

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: /mnt/    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 06:14  
Related Articles

» How to Refurbish Your NES (so you do not have to blow on the games anymore)

The NES is one of the most successful systems to exist. Unfortunately, Nintendo didn't plan to have people still play the NES for this long. I'm here to tell you how to clean the games, get rid of that dreaded blinking screen, and how to clean your controller on the inside so it has the perfect response that it used to have. You dusted off your NES, hooked it up, ready to play Contra, turn it on, and you get the dreaded blinking red/blue/green/whatever color screen, depending on your model....

» Setting ownership (chown) on an NTFS partition in Ubuntu with NTFS-3G

If you want to set ownership of a folder on an NTFS drive in Linux, you need to change the ownership of its entry in /etc/fstab. Unfortunately you cannot use chown because NTFS is not a POSIX-compatible filesystem. Open up Users and Groups and find your user's ID. The first user on an Ubuntu install has uid 1000. Similarly, click on Manage Groups and find your group - the gid for the first user is 1000. Open /etc/fstab as root sudo gedit /etc/fstab and change the mount line to include the uid...

» How to Find a Process Using a Particular Port in Linux

If you are trying to find the process using a particular port in Linux, you can do the following: lsof -i tcp:2700 The above example will return a list of processes using the TCP port with ID 2700.Alternatively you can view all open network connections by doing the following: sudo netstat -nlp