What is WebDAV and when to use it #
WebDAV (Web-based Distributed Authoring and Versioning) is a protocol that allows access to files on a remote server as if they were saved locally. It is useful in cases where it is not possible or desirable to use the Nextcloud client.
Connection Data #
WebDAV URL for u-drive.unipi.it:
https://u-drive.unipi.it/remote.php/webdav
Mounting WebDAV on Windows 10/11 #
- Open File Explorer.
- Select This PC, then Computer > Map Network Drive.
- Choose a letter (e.g., Z:) and enter as the path:
https://u-drive.unipi.it/remote.php/webdav - Select Connect using different credentials, then click Finish.
- Enter your UNIPI credentials (username and password).
Mounting WebDAV on macOS #
- In the Finder, select Go > Connect to Server…
- Enter the address:
https://u-drive.unipi.it/remote.php/webdav - Click on Connect and enter your UNIPI credentials.
- The drive will be mounted as a volume in the Finder.
WebDAV Mounting on Linux #
Method 1 – GNOME File Manager (Nautilus): #
- Open Files.
- Select Other Location > Connect to Server.
- Enter the address:
davs://u-drive.unipi.it/remote.php/webdav - Enter your UNIPI credentials.
Method 2 – Terminal (with davfs2): #
- Install
davfs2with the command:
sudo apt install davfs2 - Create a mounting directory:
mkdir ~/u-drive - Mount the volume with:
sudo mount -t davfs https://u-drive.unipi.it/remote.php/webdav ~/u-drive
Common Problem Solving #
- Check that the URL is correct and, if required, includes the username.
- Ensure that the Internet connection is active.
- On Windows, check that the WebClient service is running.
- On Linux, add the user to the davs2 group if necessary.
Security Tips #
- Avoid saving credentials on shared devices.
- Disconnect the network drive when it is not needed.
- Always use HTTPS (never HTTP).
Two-Factor Authentication (2FA) Access #
If the Nextcloud server uses two-factor authentication (2FA), the standard UNIPI password cannot be used for WebDAV access. In this case, you need to generate a specific application password. Follow these steps:
- Access the Nextcloud web portal: https://u-drive.unipi.it
- Click on your name in the top right corner and select Settings.
- In the sidebar menu, go to the Security section.
- In the Application password field, enter a name (e.g., “WebDAV Ubuntu”) and click on Create new password.
- Copy the generated password (it will be visible only once).
- Use this password for WebDAV access instead of the UNIPI password.
Note: this procedure is also required for using the Nextcloud desktop client or other external services that do not directly support 2FA.