welcome: please sign in
location: Diff for "Storage/WebDav"
Differences between revisions 14 and 15
Revision 14 as of 2014-03-10 18:22:55
Size: 3528
Editor: cabrillo
Comment:
Revision 15 as of 2014-03-10 18:47:12
Size: 3738
Editor: cabrillo
Comment:
Deletions are marked like this. Additions are marked like this.
Line 49: Line 49:
      dpkg-reconfigure davfs2 (If you want to mount the resource as user instead of root)
Line 84: Line 85:
    1. If you get the error '''file exits'''
       Edit /etc/davfs2/davfs2.conf and add:
       use_locks 0

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/username, (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

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

      •       yum install davfs2
    5. 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)
    6. Create the mount directory
      •       sudo mkdir /mnt/WebDav
    7. Mount the file system
      • Volatil
              sudo mount.davfs 'https://pool01.ifca.es/username' /mnt/WebDav
              username@laptop:~$ sudo mount.davfs 'https://pool01.ifca.es/username' /mnt/WebDav
              [sudo] password for username: 
              Please enter the username to authenticate with server
              https://pool01.ifca.es/cabrillo 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/username   26G   13G   13G  50% /mnt/WebDav
      • Permanet (edit /etc/fstab anf add the following line)
              https://pool01.ifca.es/username /mnt/WedDav   davfs   user,rw,noauto   0   0
    8. If you get the error file exits

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

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