DataHub File Management

File Management in DataHub

Web interface

In the EGI DataHub, all files are organized in spaces. The Web User interface allows for uploading new files as well as opening existing files.

In order to upload a file, open the directory in which the file should be placed and drag the file into the browser window:

drag the file into the browser window

Opening or downloading a file requires double clicking on the file in the file window.

Direct access via POSIX

Files can also be accessed directly via the POSIX interface, using Oneclient tool. Details on how to use are described in the official Oneclient documentation.

CDMI (Cloud Data Management Interface)

For more advanced use cases, files can be managed using the CDMI protocol, as described in details in the Onedata CDMI documentation.

File Permissions

You can control access to your data with a combination of:

  • classical (POSIX) file permissions
  • Access Control Lists (ACL)

POSIX Permissions

DataHub allows you to control access to your data in a POSIX-like fashion for users, group and others in terms of read, write and executable permissions.

An important nuance regarding file permissions is that all space members are treated as a virtual group which is the group owner of all files in the space. That means that whenever a file is accessed by a space member who is not the owner of the file, the group permissions are taken into consideration. Permissions for “others” are considered when accessing shares.

Consider the following example of a file’s POSIX permissions:

rwx r-- ---
 |   |   |
 |   |   guests
 |   |
 |   space members
 |
 owner user

In the above case, the creator of the file, its owner user, has a full access to the file. All space members have read access to the file. Other users, guests, who try to access the file through a share will fail to do so as all permissions are declined for “others”.

In order to edit permissions:

  1. Click on Data on the left menu bar
  2. Select the Space you want to access and the Data option
  3. Select a file or a directory and right clicking on it
  4. Click on the Permissions option
  5. Select POSIX type of permissions radio button at the top
  6. Enter privileges in octal form (e.g. 770)
  7. Click OK in order to save changes

DataHub POSIX

Access Control Lists

You can also setup permissions using more advanced Access Control Lists option to control permissions for individual users and groups.

In order to edit ACLs:

  1. Navigate to Data tab
  2. Select a file or a directory by right clicking on it
  3. Click on the Permissions option
  4. Click on the ACL radio button
  5. Edit permissions by clicking on the appropriate checkbox
  6. Click OK in order to save changes

Note, that access lists take precedence over POSIX permissions. If access list is set, POSIX are set to octal value of 000.

The order in which permissions take precedence is indicated with an arrow.

DataHub ACL

Last modified November 3, 2022 by Baptiste Grenier : Run prettier, comsetics fix