webdav mount in Fedora

2025-08-06 02:32

To mount a WebDAV URL in Fedora, you can use the davfs2 driver, which allows you to treat WebDAV shares like regular file systems. Here's a step-by-step guide:


🛠️ Step-by-Step: Mounting WebDAV in Fedora

1. Install davfs2

sudo dnf install davfs2

2. Add Your User to the davfs2 Group

sudo usermod -aG davfs2 $USER

Then log out and back in to apply the group change.

3. Create a Mount Point

sudo mkdir /mnt/webdav

4. Mount the WebDAV URL

Use your WebDAV credentials:

sudo mount -t davfs https://your-webdav-url.com /mnt/webdav

You'll be prompted for your username and password.

5. Optional: Automount via /etc/fstab

Add this line to your /etc/fstab:

https://your-webdav-url.com /mnt/webdav davfs user,noauto 0 0

Then store your credentials in ~/.davfs2/secrets:

https://your-webdav-url.com username password

Make sure the file is secure:

chmod 600 ~/.davfs2/secrets

📺 Helpful Video Tutorials


Would you like help troubleshooting a specific WebDAV URL or setting up persistent mounts with encryption?