text 将webdav mount添加到ubuntu

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text 将webdav mount添加到ubuntu相关的知识,希望对你有一定的参考价值。

To make it work you only need to know if the connection is secure (davs) or not (webdav) and if the package davfs2 is installed (open a terminal and type “sudo apt-get install davfs2”).

However in some cases you may want to have this share always mounted in your system and without the need to put credentials. If this is your case, the solution is pretty easy:

Create a folder on your disk into which the web share will be mounted:
sudo mkdir /mnt/sharename

sudo nano /etc/davfs2/secrets

add the line:
https://www.yourshare.com username password

and now you need to make sure the connection is made each time you start your computer:

sudo nano /etc/fstab

at the end of the file, on a new line type:

https://www.yourshare.com/ /mnt/sharename    davfs   defaults,uid=username,gid=username,_netdev,auto  0       0

Please note the options uid and gid, these are used to tell to the system which user will be able to write to the share (normally is root). In this case “username” is the one you use on your computer.
The option “_netdev” tells to the system to wait for the connections to be up before attempting to mount the share (otherwise it will fail). The mount will happen automatically, as requested by the option “auto”.

以上是关于text 将webdav mount添加到ubuntu的主要内容,如果未能解决你的问题,请参考以下文章

windows10挂载webdav

如何将文件上传到 c# Azure Function 生成的 FTP/webdav? [复制]

openwrt小雅alist设置webdv

限制 Confluence 6 WebDAV 客户端的写入权限

限制 Confluence 6 WebDAV 客户端的写入权限

Nginx WebDAV 模块忽略 CORS 标头