= 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 {{attachment:WebD1.png||width=300}} 1. Map Network Drive {{attachment:WebD2.png||width=300}} 1. Within the Map Network Drive dialog, enter your WebDAV address: http://your_site_url/resources (where your_site_url is '''pool01.ifca.es'''). 1. Click the two check boxes at the bottom. {{attachment:WebD3.png||width=300}} 1. Click Finish 1. Enter yourA Ldap user name and password. {{attachment:WebD4.png||width=300}} === Linux === * Under linux we can access in read/write mode using to different access 1. The [[http://www.webdav.org/cadaver/|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 }}} 1. Mount WebDav as a regular file systemed using [[http://savannah.nongnu.org/projects/davfs2|davfs2]] * Under Debian or Ubuntu {{{ sudo apt-get install davfs2 }}} * Under RedHat {{{ yum install davfs2 }}} 1. 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) }}} 1. Create the mount directory {{{ sudo mkdir /mnt/WebDav }}} 1. 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''' 1. If the files disappear from webdav directory Edit /etc/davfs2/davfs2.conf and add: '''if_match_bug 1'''