welcome: please sign in
location: Diff for "Storage/WebDav"
Differences between revisions 16 and 17
Revision 16 as of 2014-03-11 11:08:59
Size: 3684
Editor: cabrillo
Comment:
Revision 17 as of 2014-03-12 09:52:36
Size: 3891
Editor: cabrillo
Comment:
Deletions are marked like this. Additions are marked like this.
Line 31: Line 31:
  * Under linux we can access in read/write mode using to different access
    1. The [[http://www.webdav.org/cadaver/|Cadaver]] client
 * Under linux we can access in read/write mode using to different access
   1. The [[http://www.webdav.org/cadaver/|Cadaver]] client
Line 37: Line 37:
  1. Mount WebDav as a regular file systemed using [[http://savannah.nongnu.org/projects/davfs2|davfs2]]    1. Mount WebDav as a regular file systemed using [[http://savannah.nongnu.org/projects/davfs2|davfs2]]
Line 56: Line 56:
   * Volatil     * Volatil
Line 81: Line 81:
   * Permanet (edit /etc/fstab anf add the following line)     * Permanet (edit /etc/fstab anf add the following line)
Line 85: Line 85:
    1. If you get the error '''file exits'''       Then
      {{{
      mount /mnt/WedDav
}}}

===Common Issues ==
  
1. If you get the error '''file exits'''
Line 87: Line 94:
       use_locks 0        '''use_locks 0'''
  1. If the files disappear from WebDav directory
       Edit /etc/davfs2/davfs2.conf and add:
       '''if_match_bug 1'''

The WebDav Service

  • Web Distributed Authoring and Versioning (WebDAV) is an extension of the Hypertext Transfer Protocol (HTTP) that facilitates collaboration between users in editing and managing documents and files stored on World Wide Web servers.
    • The WebDAV protocol makes the Web a readable and writable medium. It provides a framework for users to create, change and move documents on a server; typically a web server or web share.

HOWTO use WebDav

  • WebDav can be used under windows, linux or MAC. We always can access in read mode to our file repository using a web browser, and seting in the address: https://pool01.ifca.es, (remember tha IFCA only supports https).

Windows

  • To enable the read/write mode, we need to mount the network device under Windows.
    1. Select Computer
      • WebD1.png

    2. Map Network Drive
      • WebD2.png

    3. Within the Map Network Drive dialog, enter your WebDAV address: http://your_site_url/resources (where your_site_url is pool01.ifca.es).

    4. Click the two check boxes at the bottom.
      • WebD3.png

    5. Click Finish
    6. Enter yourA Ldap user name and password.
      • WebD4.png

Linux

  • Under linux we can access in read/write mode using to different access
    1. The Cadaver client

      • Cadaver is a command-line WebDAV client for Unix. It supports file upload, download, on-screen display, namespace operations (move/copy), collection creation and deletion, and locking operations.
               cadaver https://pool01.ifca.es:username/
    2. Mount WebDav as a regular file systemed using davfs2

      • Under Debian or Ubuntu
        •       sudo apt-get install davfs2
      • Under RedHat

        •       yum install davfs2
      • Add your user to davfs2 group
        •       sudo usermod -a -G davfs2 username
                dpkg-reconfigure davfs2  (If you want to mount the resource as user instead of root)
      • Create the mount directory
        •       sudo mkdir /mnt/WebDav
      • Mount the file system
      • Volatil
        •       sudo mount.davfs 'https://pool01.ifca.es' /mnt/WebDav
                username@laptop:~$ sudo mount.davfs 'https://pool01.ifca.es' /mnt/WebDav
                [sudo] password for username: 
                Please enter the username to authenticate with server
                https://pool01.ifca.es or hit enter for none.
                Username: username
                Please enter the password to authenticate user username with server
                https://pool01.ifca.es/username or hit enter for none.
                Password:  
                mount.davfs: the server certificate is not trusted
                issuer:      irisgrid, es
                subject:     ifca, irisgrid, es
                identity:    http://pki.irisgrid.es/audit/?id=a25b200c1
                fingerprint: XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX
                You only should accept this certificate, if you can
                verify the fingerprint! The server might be faked
                or there might be a man-in-the-middle-attack.
                Accept certificate for this session? [y,N] y
                username@laptop:~$ df -h
                .................
                https://pool01.ifca.es   26G   13G   13G  50% /mnt/WebDav
      • Permanet (edit /etc/fstab anf add the following line)
        •       https://pool01.ifca.es /mnt/WedDav   davfs   user,rw,noauto   0   0
          Then
                mount /mnt/WedDav

===Common Issues ==

  1. If you get the error file exits

    • Edit /etc/davfs2/davfs2.conf and add:

      use_locks 0

  2. If the files disappear from WebDav directory

    • Edit /etc/davfs2/davfs2.conf and add:

      if_match_bug 1

eciencia: Storage/WebDav (last edited 2014-03-12 09:54:31 by cabrillo)