Slashdot Mirror


Accessing WebDAV Folders on Linux?

Saqib Ali asks: "I was wondering if any Slashdot readers are accessing WebDAV folders on their Linux box. I heavily use DAV folders to store files and documents. On a Windows machine, I can easily access them using WebFolder or native DAV support in MS Office Suite. But when I switch to my Linux box, I have a hard time accessing the files on the DAV folders. I haven't seen any application on Linux that support DAV natively. OpenOffice/StartOffice don't support DAV either. I know there is nautilus which uses gnome-vfs to access files on DAV, but that doesn't help if the apps don't support DAV themselves. Are there Linux app that support DAV natively? How about integerating gnome-vfs into OpenOffice? Any ideas?" For those who just want access to the files, and don't mind the extra steps, you can use utilities like Cadaver but probably, what many of you might be looking for is a simple file system driver. What are you usin to access your DAV resources?

26 comments

  1. Because no one knows what you're talking about by ObviousGuy · · Score: 3, Informative

    What is WebDAV?

    Briefly: WebDAV stands for "Web-based Distributed Authoring and Versioning". It is a set of extensions to the HTTP protocol which allows users to collaboratively edit and manage files on remote web servers.

    --
    I have been pwned because my /. password was too easy to guess.
    1. Re:Because no one knows what you're talking about by Anonymous Coward · · Score: 1, Interesting

      Oi, credit webdav.org with that ;)

      Also, WebDAV is FTP done right. If you've ever had problems with FTP getting through firewalls (particularly multiple firewalls) then try webdav. It's not just port 80 to get through firewalls, it uses a subset of HTTP//1.1 to do the basic read/write stuff and it uses it's own open standards to do versioning/file-locking/etc.

      Die FTP... DIE!

      It's faster than FTP too (ftp requires a

    2. Re:Because no one knows what you're talking about by ObviousGuy · · Score: 1

      Oi, credit webdav.org with that ;)

      I thought it would be obvious enough that I could safely omit it.

      --
      I have been pwned because my /. password was too easy to guess.
    3. Re:Because no one knows what you're talking about by Anonymous Coward · · Score: 0

      requires a what? what? don't leave us hanging!

    4. Re:Because no one knows what you're talking about by Anonymous Coward · · Score: 0
      I thought I had deleted that line. FTP requires a TCP connection per transfer whereas HTTP doesn't.

      I'm not sure if SFTP fixes this, but I doubt it.

    5. Re:Because no one knows what you're talking about by Anonymous Coward · · Score: 0

      I'm not sure if SFTP fixes this, but I doubt it.

      It does. SFTP works within the ssh protocol, just like scp. All within port 22.

    6. Re:Because no one knows what you're talking about by Anonymous Coward · · Score: 0
      Thanks!

      So it has no problems going through 2 NAT firewalls like FTP does?

    7. Re:Because no one knows what you're talking about by Matts · · Score: 3, Informative

      Also note that the V is "silent" - there is no versioning in WebDAV (there's a separate Delta-V spec, but it's not finished yet).

      --

      Matt. Want XML + Apache + Stylesheets? Get AxKit.
    8. Re:Because no one knows what you're talking about by Anonymous Coward · · Score: 1, Informative

      Not true! The DeltaV specification, "Versioning Extensions to WebDAV" was published as RFC 3253 (Standards Track), in March, 2002.

      This specification provides versioning, configuration management, workspaces, and logical change tracking capabilities.

      First out the door with an implementation is the Subversion project, which is developing an Open Source replacement for CVS.

      While we're at it, two other WebDAV specifications nearing completion are:
      WebDAV Access Control Protocol
      DAV Searching and Locating Protocol

  2. Uhm by Phexro · · Score: 3, Informative

    Disclaimer: I don't currently, nor have I ever, used WebDAV before.

    Well, KDE 3 supports WebDAV. If you use Konqi to browse to your WebDAV folder, you can open the documents therein with any app - KDE copies it to a tempfile, then re-uploads it when the editor terminates. At least, that's how it works for the other protocols, e.g. FTP. KDE native programs upload the file on every save.

    There's a WebDAV mode for [X]Emacs, and Emacs/w3 supports WebDAV.

    Of course, if you go with DavFS, any Linux app can access WebDAV servers.

    1. Re:Uhm by akeru · · Score: 2, Insightful

      If you use Gnome, Nautilus has been able to do this for ages, you must simply change the View to "View as Icons" or "View as List" rather than "View as Webpage" and it will work.

      --

      Let's hope that there's intelligent life somewhere out in space 'Cause there's bugger-all down here on Earth.

  3. DavFS by ntr0py · · Score: 2, Informative

    http://dav.sourceforge.net/

    Seems like they've got what you're looking for.

    1. Re:DavFS by cookd · · Score: 1

      These aren't the davs you're looking for...

      [sorry, couldn't resist.]

      --
      Time flies like an arrow. Fruit flies like a banana.
  4. caDAVer by geirt · · Score: 2

    I use a command line client with the horrible name cadaver. Cadaver can run WebDAV over SSL (https) for secure remote operation.

    Cadaver is a part of Redhat (at least on 7.3), runs on MAC OS X, and a cygwin port is available for Windows.

    --

    RFC1925
  5. davfs works well... by sshambar · · Score: 5, Informative

    I've been using DavFS for awhile now. It is a kernel modules which allows you to mount a dav location as a filesystem -- which pretty much allows any app to use the dav.

    It was easy enough to compile for my RH7.1 system, you just need the kernel headers installed, and you can build/install the module, and then use mount.davfs to mount a location just like a samba share. It supports user auth. and you can compile in ssl support (a must in my book :)

    My only issue is that you need to choose your mount point carefully, as an 'ls' even on the directory containing the mount point can take a second or two to complete (since the fs needs to perform a propget on the server); so I suggest placing your mount point in a subdirectory that you will only access when you're doing dav work... (ie not in your home directory). Other than that, it's great. I love it especially because it very tolerant of the server restarting/going offline, since it's just http gets and doesn't have any "state" like nfs.

    I've also mounting the drives on XP and OSX, which makes sharing documents (even securely to my office box over ssl) very cool. And setting up a dav share is just like setting up any other web location in apache (I use the mod_dav that ships with RH7.2 for my server...)

    In short, very cool stuff.

    1. Re:davfs works well... by Anonymous Coward · · Score: 1, Informative

      NFS doesn't keep state information on the server and thus isn't affected by server restarts either.

    2. Re:davfs works well... by Anonymous Coward · · Score: 0
      He is probably refering to an NFS mounted machine hanging when the NFS server goes down. This is a feature, not a bug. You don't have to mount the share in this way!

      from mount(8)
      hard The program accessing a file on a NFS mounted file
      system will hang when the server crashes. The pro-
      cess cannot be interrupted or killed unless you
      also specify intr. When the NFS server is back
      online the program will continue undisturbed from
      where it was. This is probably what you want.

      soft This option allows the kernel to time out if the
      nfs server is not responding for some time. The
      time can be specified with timeo=time. This option
      might be useful if your nfs server sometimes
      doesn't respond or will be rebooted while some pro-
      cess tries to get a file from the server. Usually
      it just causes lots of trouble.

      nolock Do not use locking. Do not start lockd.
    3. Re:davfs works well... by stonebeat.org · · Score: 1

      I understand that there is davfs and gnome-vfs and cadaver etc, however I would like to see some native DAV support in linux based apps. There are some nice Linux based desktop applications, that can gain a wider acceptance by including native DAV support.

    4. Re:davfs works well... by faster · · Score: 1
      My only issue is that you need to choose your mount point carefully

      My only issue with davfs is that 'umount' doesn't work for me. The docs don't say it's a problem, so maybe I'm doing something wrong.

      Anyone else have this problem?

      As far as speed, it's faster than my local CDROM when I'm connecting to a server 20 miles away through a DSL line, but on a cable modem across the Pacific, the latency is pretty nasty. It's still faster than running the commands to scp the file manually.

  6. Nautilus does WebDAV by jdub! · · Score: 2, Insightful

    Nautilus is awesome for WebDAV and Apple's iDisk (which is just WebDAV anyway). Copy, preview, change, all in your file manager.

    Yum!

  7. OpenOffice by jcausey · · Score: 1

    I don't personally use it, but OpenOffice claims that they support WebDAV natively.

    1. Re:OpenOffice by stonebeat.org · · Score: 1

      hmmm, but I haven't see any option in OpenOffice suite to access documents stored on DAV. There is nothing in the document as well.

  8. Kiwi file system by KjetilK · · Score: 2

    Well, I haven't used it yet, but I plan to. I just looked at the Kiwi file system. Looks nice.

    --
    Employee of Inrupt, Project Release Manager and Community Manager for Solid
  9. Compilation errors with DAVFS on linux-2.4.7-10 by stonebeat.org · · Score: 1

    Whenever I try to compile davfs it fails, I do: # ./configure --with-kernel=/usr/src/linux-2.4.7-10 # make and I get the following error message: Making all in davfs make[2]: Entering directory `/home/saqib/davfs-0.2.4/davfs' gcc -c -o inode.o -O3 -Wall -DMODULE -D__KERNEL__ -DLINUX -fomit-frame-pointer -I/usr/src/linux-2.4.7-10/include inode.c inode.c:622: parse error before string constant inode.c:622: warning: type defaults to `int' in declaration of `MODULE_LICENSE' inode.c:622: warning: data definition has no type or storage class make[2]: *** [inode.o] Error 1 make[2]: Leaving directory `/home/saqib/davfs-0.2.4/davfs' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/saqib/davfs-0.2.4' make: *** [all-recursive-am] Error 2 Any ideas on how to fix this?

  10. Broken kernel or too old? Re:Compilation errors... by moncyb · · Score: 2

    This is a typical problem installing from source with Linux--something is probably broken in either the source or your setup. Some idiots insist that compiling and installing is "not that time-consuming" and "not as tempermental as [I] suggest"--yeah right. Gotta love the open source "community". ;-)

    The line appears to use a macro called MODULE_LICENSE . It appears to allow a module to store which type of license it falls under...interesting. The macro is in my 2.4.17 kernel source and the program/module seems to compile find on my machine. Could the macro be something new?

    Perhaps the macro is only in the newer kernels, or maybe the patch added to your kernel breaks it somehow. (usually extra numbers indicate your kernel was patched/modified by the distro maintainers--I'm assuming this is the case.) I would suggest just getting the newest kernel from kernel.org. You'll lose whatever patches were made to that kernel, however I think this is a good thing unless you really really need what the patch does. In fact I recommend upgrading to a newer kernel anyway, as 2.4.7 was still in the stage where there were those funky problems.

  11. MISINFO-CITY (was Re:Nautilus does WebDAV by Anonymous Coward · · Score: 0

    iDisk is not WebDAV!
    It is AFP.