You are not logged in.
I'm trying to setup a laptop, used by all members of my family. Some would like to use similar webdav ressources, some totaly different.
My first step after installation of davfs2 was to check if root is able to mount a nextcloud dav share.
mount -t davfs https://nxc.dry.lan/remote.php/dav/files/henning/ /home/henning/NxC/
Works without problems. Then I checked the davfs Wiki and found @ 3.1 that it is possilbe to store user specific secrets in a file ~/.davfs2/secrets
So I created this file, changed permissions to 600 and added this:
/home/henning/NxC henning BlaBlaBla
But when trying to mount as user henning, the secret entry seems to be without any function.
sudo mount -t davfs https://nxc.dry.lan/remote.php/dav/files/henning/ /home/henning/NxC
I was asked for username and password as without the secrets file ...
How to make use of the secrets file ?
Henning
Offline
Shouldn't your secrets file look like this:
https://nxc.dry.lan/remote.php/dav/files/henning henning BlaBlaBla
?
Offline
From the /etc/davfs2/secrets file
# Credential Line
# ---------------
# A credential line consists of the mount-point, the user-name and
# the password. The mount-point must be an absolute path, starting
# with /. The password may be omitted.
# For compatibility with older versions, instead of the mount-point
# the URL may be given. The URL must contain scheme, fully qualified
# domain name and path. If the path segment is missing, / is assumed.
I don't know whats the "right" way. Maybe the wiki entry is outdated ?
I have tested both formats. But got the same behaviour ...
I guess that there is another problem.
Offline