cc_staff
52
edits
No edit summary |
No edit summary |
||
Line 130: | Line 130: | ||
{{Command|setfacl -d -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}} | {{Command|setfacl -R -m g:wg-datasharing:rwx /home/smithj/projects/def-smithj/shared_data}} | ||
First command sets default access rules to directory | First command sets default access rules to directory <code>/home/smithj/projects/def-smithj/shared_data</code>, 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 | Second command sets ACL rules to directory <code>/home/smithj/projects/def-smithj/shared_data</code> 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]]. |