Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
By xjlittle at 2007-03-14 10:29
Webdav is probably one of the most useful tools that I have ever used. It allows you to open and edit documents directly on a webserver. Windows users know this as web folders. There used to be a internet company called X drive but I don't know if they still exist.
Davfs complements this ability on Linux by allowing you to mount the webdav folder as if it is a local drive. This is necessary as some applications, notably OpenOffice and Lotus Notes, will not save to a url. They must have a mounted folder where they save the document.
This how to explains how to set up davfs using the package from the Ubuntu repositories. This was done on edgy.
Get the package:
sudo apt-get install davfs2
Ubuntu does not install the package suid so it must be reconfigured:
sudo dpgk-reconfigure davfs2
Choose yes on the first screen to set the applicaton to suid root.
The second screen will ask you about a group for the davfs users. You can accept the default or change this. Be sure and make a note of what you use.
The third and final screen simply gives you some instructions. Hit enter to go back the the shell
Now we have to edit /etc/davfs2/davfs2.conf Find the line that has
and change the $group to the group that you used in the dpkg-reconfigure command.
Edit /etc/fstab and create the directory where you want to mount your webdav folder. I mount mine in my home directory under the folders mnt/mydocs so the complete path is /home/me/mnt/mydocs. Go ahead and make these directories if they do not exist:
sudo mkdir -p /home/yourusername/mnt/mydocs
Open /etc/fstab for editing and add a line that looks like the following. Make sure it matches your desired directory structure and not mine:
sudo vim /etc/fstab
and add something like the following: https://me.mydocs.myorg.org:8443 /home/me/mnt/mydocs davfs rw,noauto,user 0 0
You should be able to mount the directory as a normal user:
me@ubu610-lt:~$ mount mnt/mydocs
Note that you will not get a username/password prompt if your dav folder is not set up for this on the server. I also was in my home directory so I used the relative path for mounting. Use the full path if necessary.
Check the mount:
/dev/sda3 on / type ext3 (rw,errors=remount-ro)
/dev/sda1 on /boot type ext2 (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) https://me.mydocs.myorg.org:8443 on /home/me/mnt/mydocs type coda (user=me)
Notice the next to last line is the webdav server that we put into /etc/fstab.
Voila! You should now be able to open the mounted directory from any application and open/edit/save documents in this folder as if it were on your local machine.