Sometimes Hub Admins might need to distribute a set of files to all users, rather than each user re-downloading the same dataset. This is particularly useful for educational use cases, where you might be teaching a course that reads a common dataset.
The shared directory¶
There are two folders that are used together to allow administrators to share data files with all users.
shared- All users have a directory called
sharedin their home directory. This is a read-only directory - users and administrators can not write to it. However, anybody can read from theshareddirectory.
shared-readwrite- (administrators only) Admins also have a directory called
shared-readwritein their home directory. This is the same folder as theshareddirectory, but writeable! Any file admins write here will be immediately visible in all users’shareddirectories.
Example workflow¶
To share datasets with users, Hub Admins should place the dataset in the ~/shared-readwrite directory. If they are distributing notebook / content that reads this dataset, it should refer to files in the ~/shared/ that is readable by all Hub Users and not ~/shared-readwrite. This will prevent accidental deletion or overwriting between Hub Admins.
The shared-public directory¶
The shared-public directory is available with read/write access to all Hub Users. Any user can create, read, update and delete files in this folder. Hub Admins should caution their users to take greater care not to overwrite or delete other people’s work.
The allusers directory¶
Hub Administrators might need to share data files with the users, and this files must only be visible to the users that they’re addressed to. For example, uploading graded notebook assignments in each user’s home directory.
They may also need to access all users’ home directories to perform administrative tasks, such as cleaning up files or managing user data.
If such a workflow is needed, then an additional allusers directory can be enabled for administrators only, where all the Hub users’ directories are accessible to read and modify. Please reach out to us if you’d like this feature enabled.