Line 1: |
Line 1: |
− | Quite often we will give a researcher access to a web experiment by giving a webdav enabled url, a username and password. This page describes how to use this url. In the remainder of this page we will assume that you were given the url https://exp.socsci.ru.nl/experiment/webdav.php, the username u123456 and the password PASSWORD. | + | Quite often we will give a researcher access to some resource by giving a webdav enabled url, a username and password. This page describes how to use this url. In the remainder of this page we will assume that you were given the url https://exp.socsci.ru.nl/experiment/webdav.php, the username u123456 and the password PASSWORD. |
| + | |
| + | The resource can be anything. It can be simply a folder for shared data, or it can be a web experiment accessible via another (non webdav) url. |
| | | |
| = Webbrowser = | | = Webbrowser = |
− | To use the url in a webbrowser, just open the page and type username and password in the popup dialog. This will give you a limited number of features (create new folder, upload file, ...) | + | To use the url in a webbrowser, just open the url and type username and password in the popup dialog. |
| + | |
| + | The page show is a SabreDav web page that will give you a limited number of features (create new folder, upload file, ...). |
| [[File:Browser sabre dav.png|thumb|Using Sabre Webdav in your browser.]] | | [[File:Browser sabre dav.png|thumb|Using Sabre Webdav in your browser.]] |
| | | |
| = Linux = | | = Linux = |
− | In Linux (and other POSIX compliant operating systems) you can connect a local directory (~/experiment in this example) to the Webdav resource: | + | In Linux (and other POSIX compliant operating systems) you can connect a local directory (~/experiment in this example) to the Webdav resource (replace USER with your username): |
| | | |
− | sudo apt install davfs2 # make sure to allow non root users (setuid root) | + | sudo apt install davfs2 # no need to allow non root users (setuid root) |
| mkdir ~/experiment | | mkdir ~/experiment |
− | mount.davfs https://exp.socsci.ru.nl/experiment/webdav.php ~/experiment -o rw | + | sudo mount.davfs https://exp.socsci.ru.nl/experiment/webdav.php ~/experiment -o rw,uid=USER,gid=USER |
− | | |
− | If you accidentally did not allow non-root users access, run:
| |
− | | |
− | sudo dpkg-reconfigure davfs2
| |
− | sudo usermod -a -G davfs2 $USER
| |
| | | |
| If you want to mount this resource each time you boot your computer, put the following in /etc/fstab (replacing USER with your username) | | If you want to mount this resource each time you boot your computer, put the following in /etc/fstab (replacing USER with your username) |