Setuid Root on mount.davfs

Hey, yesterday i tried to set up my webdav shares on my PC.
I installed davfs2

sudo zypper in davfs2

I can Mount the shares using root and the secrets file also work.
I also set up fstab to make life easier.

image

But I cant figure out how to mount it as “normal” User.

I read the man-Page and it said to add the user to the group davfs2, which i did.

max@localhost:~> id
uid=1000(max) gid=1000(max) groups=1000(max),457(davfs2),459(docker) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023

But whenever i use mount /home/max/mailbox.org
I get the following Output

max@localhost:~> mount mailbox.org
mount.davfs: program is not setuid root

I already tried to log-out/reboot but it doesnt work.
I tried the same steps on my Laptop also using Tumbleweed and get the exact same behaviour.

Does anyone have an Idea how to fix this?
Thanks!

chmod u+s /usr/sbin/mount.davfs
See here in German:
https://www.linux-tips-and-tricks.de/de/netzwerk/190-wie-kann-man-medienspeicher-oder-smartdrive-unter-linux-einbinden/

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.