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 20:43] mgstauff [Sharing Your Data Using ACL's] |
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 32: | Line 36: | ||
* PROS: | * PROS: | ||
* no setup needed from CfN sysadmins | * no setup needed from CfN sysadmins | ||
- | * there' | + | |
* good for quick sharing | * 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' | ||
Line 91: | Line 97: | ||
===The Quick Way to Use ACLs === | ===The Quick Way to Use ACLs === | ||
- | We've created a script on the cluster (chead and nodes) for easily sharing | + | We've created a script on the cluster (chead and nodes) for easily sharing data and viewing |
cfn-share-data | cfn-share-data | ||
- | | + | |
- | This script should be in your search path. If not, look in ''/ | + | |
- | Run the script with no parameters to print instructions. | + | |
+ | * __This script will be prompt you for your password__ - this is normal. It's using '' | ||
__To clear all ACL' | __To clear all ACL' | ||
- | | + | |
====More detailed info on ACLs==== | ====More detailed info on ACLs==== |