This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
groupdatadirs [2016/07/27 15:01] mgstauff [How to Share Data] |
groupdatadirs [2017/05/30 18:34] (current) mgstauff [Sharing Your Data Using ACL's] |
||
|---|---|---|---|
| Line 2: | Line 2: | ||
| ===== Don't Make Data World-Readable! ===== | ===== Don't Make Data World-Readable! ===== | ||
| - | Users often need to share data with collaborators. It's tempting to simply do '' | + | Users often need to share data with collaborators. It's tempting to simply do '' |
| Even **worse** is to make your data world-writable, | Even **worse** is to make your data world-writable, | ||
| Line 8: | Line 8: | ||
| There are good alternatives to making data and data directories world-readable and world-writable. Keep reading... | There are good alternatives to making data and data directories world-readable and world-writable. Keep reading... | ||
| + | ===== Quickly Share Some Data within the Cluster ===== | ||
| + | |||
| + | There' | ||
| ===== Linux Permissions - Important to Understand ===== | ===== Linux Permissions - Important to Understand ===== | ||
| Line 23: | Line 26: | ||
| * Shared Directories - generally for longer-term sharing with an established group and collaborators. | * Shared Directories - generally for longer-term sharing with an established group and collaborators. | ||
| + | * More details below | ||
| * PROS: | * PROS: | ||
| * easy to see ownership and permissions from regular linux '' | * easy to see ownership and permissions from regular linux '' | ||
| Line 31: | Line 35: | ||
| * ACL (Access Control List) permissions - user-controlled permissions for sharing files and directories with existing users and linux groups | * ACL (Access Control List) permissions - user-controlled permissions for sharing files and directories with existing users and linux groups | ||
| * PROS: | * PROS: | ||
| - | * no admin setup needed | + | * no setup needed |
| + | * **there' | ||
| + | * good for quick sharing | ||
| * easy to use for fine-tuned permissions settings (e.g. give one user read-only permission, another write permissions for the same directory) | * easy to use for fine-tuned permissions settings (e.g. give one user read-only permission, another write permissions for the same directory) | ||
| * fine-tuned permissions can make it easier to protect against large amounts of data being accidentally deleted or changed by one user with permissions to a group directory | * fine-tuned permissions can make it easier to protect against large amounts of data being accidentally deleted or changed by one user with permissions to a group directory | ||
| * CONS: | * CONS: | ||
| + | * **NOTE** you can't directly use '' | ||
| * viewing permissions requires '' | * viewing permissions requires '' | ||
| * easier to forget that or how something is shared because of above issue | * easier to forget that or how something is shared because of above issue | ||
| + | |||
| * PUBLIC directory and other shared groups | * PUBLIC directory and other shared groups | ||
| * We've created a PUBLIC directory in everyone' | * We've created a PUBLIC directory in everyone' | ||
| - | Details: | + | **Details |
| ---- | ---- | ||
| Line 87: | Line 95: | ||
| ====Sharing Your Data Using ACL' | ====Sharing Your Data Using ACL' | ||
| + | |||
| + | ===The Quick Way to Use ACLs === | ||
| + | We've created a script on the cluster (chead and nodes) for easily sharing data and viewing ACLs: | ||
| + | |||
| + | cfn-share-data | ||
| + | |||
| + | * This script should be in your search path. If not, look in ''/ | ||
| + | * Run the script with no parameters to print instructions and get a few examples. | ||
| + | * __This script will be prompt you for your password__ - this is normal. It's using '' | ||
| + | |||
| + | __To clear all ACL' | ||
| + | |||
| + | cfn-share-data -c < | ||
| + | |||
| + | ====More detailed info on ACLs==== | ||
| There' | There' | ||