Hi all,
I use systemd to mount my NC webdav, when I need it and unmount, when I don’t.
Works perfectly fine, but not with TOTP enabled
This is my /etc/systemd/system/cloud.domain.tld.mount
:
[Unit]
Description=Mount personal Nextcloud WebDAV
After=network-online.target
Wants=network-online.target
[Mount]
What=https://cloud.domain.tld/remote.php/webdav/
Where=/cloud.domain.tld
Options=noauto,user,uid=myself,gid=myself
Type=davfs
TimeoutSec=60
[Install]
WantedBy=remote-fs.target
The command is sudo systemctl start cloud.domain.tld.mount
, the error is 401 Unauthorized
.
Ideas? Thank you!