How to mount webdav folder on Linux?

Dear all,
i am able to mount the webdav share without totp.
However if i activate TOTP how can i mount the share?

I am not prompted for the two factor authentication neither by cadaver nor by davfs2

The idea is to permanently mount the share with the app password.

Any idea?

Kind regards

I’ve permanently mounted a NC folder to a Linux server by adding a line to /etc/fstab looking like this:

https://nc.mydomain.tld/remote.php/webdav/my_folder_name/ /media/my_mount davfs defaults,uid=myuser,gid=myuser,_netdev,auto 0 0

Also added a line to /etc/dav2fs/secrets:

/media/my_mount my_user my-app-password-for-my-user

Not sure if it will work with totp tho…

Hi,
and thanks for the hint - it works now.
it does not work with the normal mount command thou.

So thanks a lot and merry Christmas :slight_smile:

Hope resuming an old post is fair.
I have a similar problem: can’t success in having WebDAV mounts on the Linux command line.
Tried the instructions in the manual, hints from this post and similar, but no result.
I always get something like (direct mount no fstab, but no difference):

mount -t davfs http://dav.domain.it/nextcloud/remote.php/webdav/ /share/Roma/

Please enter the username to authenticate with server
h…t/nextcloud/remote.php/webdav/ or hit enter for none.
Username: USERNAME
Please enter the password to authenticate user USERNAME with server
h…t/nextcloud/remote.php/webdav/ or hit enter for none.
Password:
/sbin/mount.davfs: Mounting failed.
302 Found

#mount -t davfs https://dav.domain.it/nextcloud/remote.php/webdav/ /share/Roma/
Please enter the username to authenticate with server
h…t/nextcloud/remote.php/webdav/ or hit enter for none.
Username: USERNAME
Please enter the password to authenticate user USERNAME with server
h…t/nextcloud/remote.php/webdav/ or hit enter for none.
Password:
/sbin/mount.davfs: the server certificate does not match the server name
/sbin/mount.davfs: the server certificate is not trusted
issuer: dav.domain.it
subject: dav.domain.it
identity: dav.domain.it
fingerprint: 4a:60:d8:f2:82:e5:32:2e:ff:de:29:2e:4b:41:fd:26:28:fa:16:d5
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
/sbin/mount.davfs: mounting failed; the server does not support WebDAV

Or strictly to the manual hints:

mount -t davfs https://dav.domain.it/nextcloud/remote.php/dav/files/USERNAME/ /Roma/

Please enter the username to authenticate with server
h…t/nextcloud/remote.php/dav/files/USERNAME/ or hit enter for none.
Username: USERNAME
Please enter the password to authenticate user USERNAME with server
h…t/nextcloud/remote.php/dav/files/USERNAME/ or hit enter for none.
Password:
/sbin/mount.davfs: the server certificate is not trusted
issuer: dav.domain.it
subject: dav.domain.it
identity: dav.domain.it
fingerprint: 4a:60:d8:f2:82:e5:32:2e:ff:de:29:2e:4b:41:fd:26:28:fa:16:d5
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
/sbin/mount.davfs: mounting failed; the server does not support WebDAV

I have edited domain and USERNAME.
I am using a 14.0.3 version of NC in a turnkeylinux lxc container installation (it is a test). Web and client connections works fine.
Similar sintax on the same linux client boxes on a owncloud test VM works fine.

Massive Performance Problems with TOTP enabled under NC 16.0.1

I use the Gnome “Online-Konten” Tool and it was working properly until upgrade to NC 16.0.1 (from 15.0.7) in combination with TOTP coming with NC 16

When trying to mount webdav i get “No webdav capable device”

Bildschirmfoto%20vom%202019-05-24%2007-00-44_2

So i deleted the old webdav connection and re-enabled it


But each time i enable “files” i get this error.

I tried the method above - it worked but it’s so slow - can’t use it for work properly.

To have a compare -> Calendar, Contacts, Tasks are working still with same combination and tools! Only “files” is making trouble.
So that the entry above in Screenshot is called “ownCloud” instead of “Nextcloud” was no problem until NC 16 - it just worked.

And more: Déjà Dup is no longer working too. When entering my Server URL + Username + App Token (instead of Password) -> Déjà Dup reports http Authorization error -> no access to webdav folders!
Need help with that.