Mounting a Webdav File System: Difference between revisions

Jump to navigation Jump to search
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
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.
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 <code><nowiki>https://exp.socsci.ru.nl/experiment/webdav.php</nowiki></code>, the username <code>u123456</code> and the password <code>PASSWORD</code>.


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.
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.
Line 13: Line 15:


<pre>
<pre>
  sudo apt install davfs2 # no need to allow non root users (setuid root)
sudo apt install davfs2 # no need to allow non root users (setuid root)
  mkdir ~/experiment
mkdir ~/experiment
  sudo mount.davfs https://exp.socsci.ru.nl/experiment/webdav.php ~/experiment -o rw,uid=USER,gid=USER
sudo mount.davfs https://exp.socsci.ru.nl/experiment/webdav.php ~/experiment -o rw,uid=USER,gid=USER
</pre>
</pre>


Line 21: Line 23:


<pre>
<pre>
  https://exp.socsci.ru.nl/experiment/webdav.php /home/USER/experiment davfs _netdev,noauto,user,uid=USER,gid=USER 0 0
https://exp.socsci.ru.nl/experiment/webdav.php /home/USER/experiment davfs _netdev,noauto,user,uid=USER,gid=USER 0 0
</pre>
</pre>


Line 27: Line 29:


<pre>
<pre>
  /home/USER/experiment u123456 PASSWORD
/home/USER/experiment u123456 PASSWORD
</pre>
</pre>