Mounting a Webdav File System: Difference between revisions
Jump to navigation
Jump to search
m →Mac OSX |
m →Linux |
||
| Line 12: | Line 12: | ||
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): | 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): | ||
<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> | |||
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) | ||
<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> | |||
and put the password in /etc/davfs2/secrets using: | and put the password in /etc/davfs2/secrets using: | ||
<pre> | |||
/home/USER/experiment u123456 PASSWORD | /home/USER/experiment u123456 PASSWORD | ||
</pre> | |||
== Nautilus == | == Nautilus == | ||