Sharing data: Difference between revisions

no edit summary
(Marked this version for translation)
No edit summary
Line 127: Line 127:


<!--T:20-->
<!--T:20-->
To allow read and write access to everything within a certain directory (for example ''/home/smithj/projects/def-smithj/shared_data'') for particular group (for example ''wg-datasharing''), use the following command:
To allow read and write access to everything within a certain directory (for example ''/home/smithj/projects/def-smithj/shared_data'') for particular group (for example ''wg-datasharing''), use the following commands:
{{Command|setfacl -m g:wg-datasharing:rwx /home/smithj/projects/def-smithj/shared_data}}
{{Command|setfacl -d -m g:wg-datasharing:rwx /home/smithj/projects/def-smithj/shared_data}}
{{Command|setfacl -R -m g:wg-datasharing:rwx /home/smithj/projects/def-smithj/shared_data}}
First command sets default access rules to directory ''/home/smithj/projects/def-smithj/shared_data'', so any file or directory created within it will inherit the same ACL rule. It is required for '''new''' data.
Second command sets ACL rules to directory ''/home/smithj/projects/def-smithj/shared_data'' and all its content currently in it. So it is applicable only to '''existing''' data.
In order for this method to work the following things need to be in place:
In order for this method to work the following things need to be in place:
* Group <code>wg-datasharing</code> (or any other name you prefer) must be created in CCDB and you must be assigned ownership of this group. This allows you to add or remove members of the group in [[https://ccdb.computecanada.ca CCDB]].
* Group <code>wg-datasharing</code> (or any other name you prefer) must be created in CCDB and you must be assigned ownership of this group. This allows you to add or remove members of the group in [[https://ccdb.computecanada.ca CCDB]].
cc_staff
52

edits