cc_staff
318
edits
No edit summary |
No edit summary |
||
Line 203: | Line 203: | ||
<!--T:27--> | <!--T:27--> | ||
<source lang="console"> | <source lang="console"> | ||
# The X attribute (compared to x) sets execute access only when the item is already executable | # The X attribute (compared to x) sets execute access only when the item | ||
# is already executable (which is necessary permission for a directory to be able to browse it) | |||
$ setfacl -d -m u:smithj:rwX /home/<user>/projects/def-<PI>/shared_data | $ setfacl -d -m u:smithj:rwX /home/<user>/projects/def-<PI>/shared_data | ||
$ setfacl -R -m u:smithj:rwX /home/<user>/projects/def-<PI>/shared_data | $ setfacl -R -m u:smithj:rwX /home/<user>/projects/def-<PI>/shared_data | ||
Line 214: | Line 215: | ||
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: | ||
* The directory, <code>/home/smithj/projects/def-smithj/shared_data</code> in our example, must be owned by you. | * The directory, <code>/home/smithj/projects/def-smithj/shared_data</code> in our example, must be owned by you. | ||
* Parent directories (and parents of parents, etc.) of the one you are trying to share must allow execute permission to the user you are trying to share with. | * Parent directories (and parents of parents, etc.) of the one you are trying to share must allow execute permission to the user you are trying to share with. This can be supplied with <code>setfacl -m u:smithj:X ...</code> in this example, or it can be supplied by allowing everyone entry, i.e. <code>chmod o+x ...</code>. They do not need to have public read permission. In particular you will need to grant execute permission on the project directory (<code>/projects/def-<PI></code>) either for everyone, or one-by-one to all the people you are trying to share your data with. | ||
=== Data Sharing Groups === <!--T:30--> | === Data Sharing Groups === <!--T:30--> |