You are not logged in.

#1 2023-04-21 14:53:46

fow0ryl
Member
From: Braunschweig
Registered: 2021-04-30
Posts: 14

struggeling with davfs2

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

#2 2023-04-21 15:59:31

-thc
Member
Registered: 2017-03-15
Posts: 775

Re: struggeling with davfs2

Shouldn't your secrets file look like this:

https://nxc.dry.lan/remote.php/dav/files/henning henning BlaBlaBla

?

Offline

#3 2023-04-21 17:31:28

fow0ryl
Member
From: Braunschweig
Registered: 2021-04-30
Posts: 14

Re: struggeling with davfs2

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

Board footer

Powered by FluxBB