/usr/lib/mount.davfs-2.6: Could not open /dev

  • Harry Mangalam

    Harry Mangalam - 2006-05-14

    I'm trying davfs on a linux system, trying to connect to a commercial installation of webdav called xythos. 

    As root, it works as expected altho the $ performance is not terrific due to the protocol overhead on the server side.  However trying to mount it as a user, I run into the subject line header at this point:

    $ mount /home/hjm/webdav
    Please enter the username for authentication with server
    http://webfiles.xxx.xxx/liloldme or hit enter for none.
    Username: liloldme
    Please enter the password to authenticate liloldme with server
    http://webfiles.xxx.xxx/liloldme or hit enter for none.
    Password: [secret]
    /usr/lib/mount.davfs-2.6: Could not open /dev/davfs0

    My setup is:
    kernel 2.6.12-8-386, ubuntu breezy, thinkpad a22p
    the coda module is loaded, I have set:
    drwxrwxr-T  2 root users 4096 2006-05-14 11:35 /var/run/mount.davfs

    /dev/davfs0 is set as:
    crw-rw----  1 root users 67, 0 2006-05-14 10:26 /dev/davfs0

    the user liloldme is in /etc/group as a member of users

    and I even [temporarily] set mount.davfs as suid

    -rwsr-sr-x  1 root root 245 2005-09-14 12:15 /usr/sbin/mount.davfs

    stracing the mount does not reveal any more info.

    dmesg/syslog are silent about davfs mounts at this point.

    google had a couple of comments about this but only in foreign languages

    Thanks in advance

    • Werner Baumann

      Werner Baumann - 2006-05-15

      Hello Harry,

      to see what is wrong with /dev/davfs0 you might try to read from and write to the device from command line, as user liloldme.

      $ cat /dev/davfs0
      This should work without error message, but it will block as there is nothing to read, so you will have to stop it using ctrl C.

      $ echo hello /dev/davfs0
      There should be no error message too. But there should be some entry in syslog.

      I am wondering about the error message:
      "/usr/lib/mount.davfs-2.6: Could not open /dev/davfs0"
      It should be followed by "Kernel does not support coda, or the coda-module is not loaded."

      What is the exact version of your davfs2. Is it the Debian package from our file download page, from a Debian server or from some other source?

      About setuid:
      /usr/sbin/mount.davfs is just a wrapper script and does not need to be setuid. But the binary in
      must be setuid if you want to mount as an ordinary user.



Log in to post a comment.