Department of Computer Science and Technology

Remote file access using WebDAV

You can access the filer remotely using WebDAV over https to the server svr-webdav.ad.cl.cam.ac.uk. The area of your private filespace that is visible can be controlled by users according to their needs. File protection and access rights via this method are identical to those available within the laboratory. You should not use WebDAV with a VPN; the latter is not needed and will result in much poorer performance.

To use the service you first need to set the scope of the filespace you will expose over WebDAV. This is determined by the contents of the folder (directory) webdav in your superhome. It can either be a real folder or a symbolic link to something else; creating the latter must be done from the Linux operating system. To expose the superhome itself you need to loopback via ../crsid rather than creating a link to the current directory pointer '.' To get to your superhome, use

cd /auto/userfiles/crsid

Make sure you really are in your superhome - you should see at least two folders, one named unix_home and another called windows_home. You can either create a new folder there and put files there explicitly:

mkdir webdav

or you could link to an existing folder in your current unix (or windows) home e.g.:

ln -s unix_home/public_html webdav

This would make your www pages accessible via WebDAV. To see all your files, you need to link as follows:

ln -s ../crsid webdav

Connecting from macOS

macOS supports direct connection to WebDAV folders via the Finder. Click on the screen backgroup to make the finder active.  Then select Go form the finder menu and then Connect to Server. A dialogue box will pop up requesting a server address, which is https://svr-webdav.ad.cl.cam.ac.uk/webdav/crsid. Add the string by clicking the + button, then click on the Connect button.

Connect to server dialog

A dialogue box will appear asking for your username and password. The username must be in the form crsid@ad.cl.cam.ac.uk and the password is your laboratory systems password. Once entered, a folder should open on the desktop with the files displayed.

macos credential dialog

Connecting from Windows

Open 'This PC' app, click on 'Computer' and select Map Network Drive. In the dialog box, specify the folder location as https://svr-webdav.ad.cl.cam.ac.uk/webdav/crsid.

map network drive dialog

Click 'Finish'. In the dialog that follows, insert your laboratory credentials as shown

credentials dialog

and click OK.  The folder will open, showing the files.

Connecting from Linux

You first need to load the appropriate package e.g.

apt-get install davfs2

You can then mount the WebDAV folder using a command such as

% sudo mount -t davfs https://svr-webdav.ad.cl.cam.ac.uk/webdav/gt19 /mnt
[sudo] password for gt19: 
Please enter the username to authenticate with server
https://svr-webdav.ad.cl.cam.ac.uk/webdav/gt19 or hit enter for none.
  Username: [Javascript required]
Please enter the password to authenticate user [Javascript required] with server
https://svr-webdav.ad.cl.cam.ac.uk/webdav/gt19 or hit enter for none.
  Password: 
% 

The WebDAV folder should then be mounted on /mnt.