Globus Curator's Guide
Jump to navigation
Jump to search
Introduction
Here will be the instructions on how to maintain globus.
Notes
- For any restrict path's to work in the Guest Collections, the main collection needs to have either the same or broader path to be allowed.
- The main collection is currently private. Only the admins can have access to it.
Updating Path Permissions for the Guest Collection
- Identify the real paths of the permission denied paths. Globus doesn't follow symbolic links
readlink -f <symlink>
- Become root in epyc
- Go to /root/globus
cd /root/globus
- Insert and save the real paths at the end of this file (check commas for syntax or you'll get an error):
vim storage_gateway_path_restriction.json
- Here is an example of what it should look like
{ "DATA_TYPE": "path_restrictions#1.0.0", "none": ["/"], "read": [ "/nfs/ex3/published", "/nfs/exe/work/jji/2dexport", "/nfs/exe/work/jji/3d-zinc20", "/nfs/exl/zinc-22a", "/nfs/exl/zinc-22b", "/nfs/exl/zinc-22c", "/nfs/exc/zinc-22n" ], "read_write":[ "/nfs/mammoth/idg-images/newAmisData" ] }
- Create a session token with globus. (Cluster 2 Password, ucsfbks)
globus-connect-server session update ucsfbks@globusid.org
- Follow instructions given by globus and it should tell you that it was successful
- In the same directory, run this command to update
bash globus-storage-gateway.sh update
- This is the successful message
Message: Updated Storage Gateway aa731fb1-b27a-49e6-aaeb-2d2cc252f779
Updating Path Permissions for the Main Collection
- Identify the real paths of the permission denied paths. Globus doesn't follow symbolic links
readlink -f <symlink>
- Become root in epyc
- Go to /root/globus
cd /root/globus
- Insert and save the real paths at the end of this file (check commas for syntax or you'll get an error):
vim path_restrictions.json
- Here is an example of what it should look like
{ "DATA_TYPE": "path_restrictions#1.0.0", "read": [ "/" ], "read_write": [ "/nfs/mammoth/idg-images/newAmisData/" ] }
- Create a session token with globus. (Cluster 2 Password, ucsfbks)
globus-connect-server session update ucsfbks@globusid.org
- If above doesn't work, run below and follow instructions. (Cluster 2 Password, ucsfbks)
globus-connect-server login localhost
- Follow instructions given by globus and it should tell you that it was successful
- In the same directory, run this command to update
globus-connect-server collection update --sharing-restrict-paths file:path_restrictions.json 2e1e1781-6d8a-440a-8604-7100d9c65c90
- This is the successful message
code: success
- Lastly, in the globus web GUI, you need to allow a specific user or group to access the new path in the permissions tab located in the collection overview.