Skip to content
Bots!
Bots!
  • About
    • Myself
    • আমার দোয়া
  • Bookmarks
    • Bookmarks
    • My OCI Bookmarks
    • Useful Proxmox Commands & Links
    • Learning Nano
    • Useful Sites
    • Useful Virtualbox Command
    • Useful MySQL Command
    • Useful Linux Command
    • BTT-CAS
  • Resources
    • Webinar on Cloud Adoption for Project Managers
  • Photos
  • Videos
  • Downloads
Bots!

Accessing Nextcloud files using WebDAV

Rumi, October 11, 2019

Mapping a network drive in Windows

Go to the Start menu and click on ‘Computer’.

When the ‘Computer’ file browser window opens, then click on ‘Map network drive’.

A window will appear asking you to choose a drive letter for the network drive (any drive letter not currently in use will work) and supply the address of the network folder.

In my case it was https://drive.kloud.com.bd/remote.php/dav/files/USERNAME/

Make sure the ‘Reconnect at logon’ and ‘Connect using different credentials’ boxes are ticked below the folder address, then click on the ‘Finish’ button.

You will be promted for the cloud username and password that were set for your account.

Enter the username and password that you use to log into the NextCloud web interface. If you wish to save the password on your computer so that you don’t have to enter it each time the computer establishes a connection with the server, then you can tick the ‘Remember my credentials’ box. Then click the ‘OK’ button. If the details you’ve entered are correct, then all the files from your cloud account will then be available under the new drive letter.

Accessing files using Linux

You can access files in Linux operating systems using the following methods.

Nautilus file manager
Use the davs:// protocol to connect the Nautilus file manager to your Nextcloud share:

davs://example.com/nextcloud/remote.php/dav/files/USERNAME/

Note

If your server connection is not HTTPS-secured, use dav:// instead of davs://.

Accessing files with KDE and Dolphin file manager
To access your Nextcloud files using the Dolphin file manager in KDE, use the webdav:// protocol:

webdav://example.com/nextcloud/remote.php/dav/files/USERNAME/

You can create a permanent link to your Nextcloud server:

  • Open Dolphin and click “Network” in the left hand “Places” column.
  • Click on the icon labeled Add a Network Folder. The resulting dialog should appear with WebDAV already selected.
    If WebDAV is not selected, select it.
  • Click Next.
  • Enter the following settings:Name: The name you want to see in the Places bookmark, for example Nextcloud.
  • User: The Nextcloud username you used to log in, for example admin.
  • Server: The Nextcloud domain name, for example example.com (without http:// before or directories afterwards).
  • Folder – Enter the path nextcloud/remote.php/dav/files/USERNAME/.
  • (Optional) Check the “Create icon checkbox” for a bookmark to appear in the Places column.
  • (Optional) Provide any special settings or an SSL certificate in the “Port & Encrypted” checkbox.

Creating WebDAV mounts on the Linux command line

You can create WebDAV mounts from the Linux command line. This is useful if you prefer to access Nextcloud the same way as any other remote filesystem mount. The following example shows how to create a personal mount and have it mounted automatically every time you log in to your Linux computer.

Install the davfs2 WebDAV filesystem driver, which allows you to mount WebDAV shares just like any other remote filesystem. Use this command to install it on Debian/Ubuntu:

apt-get install davfs2

Use this command to install it on CentOS, Fedora, and openSUSE:

yum install davfs2

Add yourself to the davfs2 group:

usermod -aG davfs2 <username>

Then create a nextcloud directory in your home directory for the mountpoint, and .davfs2/ for your personal configuration file:

mkdir ~/nextcloud
mkdir ~/.davfs2

Copy /etc/davfs2/secrets to ~/.davfs2:

cp /etc/davfs2/secrets ~/.davfs2/secrets

Set yourself as the owner and make the permissions read-write owner only:

chown <linux_username>:<linux_username> ~/.davfs2/secrets
chmod 600 ~/.davfs2/secrets

Add your Nextcloud login credentials to the end of the secrets file, using your Nextcloud server URL and your Nextcloud username and password:

https://example.com/nextcloud/remote.php/dav/files/USERNAME/ <username> <password>
or
$PathToMountPoint $USERNAME $PASSWORD

for example

/home/user/nextcloud john 1234

Add the mount information to /etc/fstab:

https://example.com/nextcloud/remote.php/dav/files/USERNAME/ /home/<linux_username>/nextcloud
davfs user,rw,auto 0 0

Then test that it mounts and authenticates by running the following command. If you set it up correctly you won’t need root permissions:

mount ~/nextcloud

You should also be able to unmount it:

umount ~/nextcloud

Now every time you login to your Linux system your Nextcloud share should automatically mount via WebDAV in your ~/nextcloud directory. If you prefer to mount it manually, change auto to noauto in /etc/fstab.

Administrations Configurations (Linux) NextcloudOwncloudWebdav

Post navigation

Previous post
Next post

Comments (2)

  1. Tocard ! says:
    August 9, 2023 at 4:35 pm

    Copié coller de la doc officielle … tu sert a rien

    Reply
    1. Rumi says:
      August 9, 2023 at 5:01 pm

      Yes, there are plenty posts which are copied and paste from other posts or pages (even from officials)… I like to keep the necessary part for myself and my own archive as no one else out there can assure to make the tid-bits of solutions that I work will be avaialble forever. Thank you very much.

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Myself…

Hi, I am Hasan T. Emdad Rumi, an IT Project Manager & Consultant, Virtualization & Cloud Savvyfrom Dhaka, Bangladesh. I have prior experience in managing numerous local and international projects in the area of Telco VAS & NMC, National Data Center & PKI Naitonal Root and CA Infrastructure. Also engaged with several Offshore Software Development Team.

Worked with Orascom Telecom-Banglalink, Network Elites as VAS partner, BTRC, BTT (Turkey) , Mango Teleservices Limited and Access to Informaiton (A2I-UNDP)

Currently working at Oracle Corporation as Principal Technology Solution and Cloud Architect.

You can reach me [h.t.emdad at gmail.com] and I will be delighted to exchange my views.

Tags

Apache Bind Cacti CentOS CentOS 6 CentOS 7 Debain Debian Debian 10 Debian 11 Debian 12 DKIM Docker endian icinga iptables Jitsi LAMP Letsencrypt Linux Munin MySQL Nagios Nextcloud NFS nginx pfsense php Postfix powerdns Proxmox RDP squid SSH SSL Ubuntu Ubuntu 16 Ubuntu 18 Ubuntu 20 Varnish virtualbox vpn Webmin XCP-NG zimbra

Topics

Recent Posts

  • Install Jitsi on Ubuntu 22.04 / 22.10 April 30, 2025
  • Key Lessons in life April 26, 2025
  • Create Proxmox Backup Server (PBS) on Debian 12 April 19, 2025
  • Add Physical Drive in Proxmox VM Guest April 19, 2025
  • Mount a drive permanently with fstab in Linux April 16, 2025
  • Proxmox 1:1 NAT routing March 30, 2025
  • Installation steps of WSL – Windows Subsystem for Linux March 8, 2025
  • Enabling Nested Virtualization In Proxmox March 8, 2025
  • How to Modify/Change console/SSH login banner for Proxmox Virtual Environment (Proxmox VE / PVE) March 3, 2025
  • Install Proxmox Backup Server on Debian 12 February 12, 2025

Archives

Top Posts & Pages

  • Install Jitsi on Ubuntu 22.04 / 22.10
©2025 Bots! | WordPress Theme by SuperbThemes