With FUSE it is possible to mount many things purely as a non privileged user. However, it seems that for webdav davfs2 is the preferred project, which appears to be a filesystem driver and uses the standard mount/umount which requires privileges.
Is there a way to use this (or another library) to mount webdav only as a user via fuse ? (i.e. so each user could mount a different webdav on a different server, without needing to configure anything in fstab etc).
I was able to use wdfs to make it work as a non priv. user:
To unmount
wdfs is from here and uses fuse. I use Archlinux and this AUR package worked fine.
But current state of wdfs is unclear, there is a kind-of-fork lurking at gihub as well.
As a starter answer.. I would suggest the following.
1) sshfs doesn't require access to the /etc/fstab, so if you can map your webdav users onto linux users with similar file structure, then that is a simple alternative.
Then you can use non-root syntax like this to mount within your local home directory;
2) gvfs/gio - Depending on your distro,
/usr/libexec/gvfsd-dav
might be an option, which should allow an alternative control syntax to mount the webdav filesystem under~/.gvfs/
However the documentation is pretty rubbish, and I've only made a limited test of its functionality like so;
As root;
then as a user;
If you have
sudo
rights but want to mount this the directory as a regular user you can usedavfs
andmount
. Just adding this for completion if somebody searches for this answer like I did.