User Tools

Site Tools


groupdatadirs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
groupdatadirs [2017/05/19 20:27]
mgstauff [How to Share Data]
groupdatadirs [2017/05/30 18:34] (current)
mgstauff [Sharing Your Data Using ACL's]
Line 26: 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 ''ls -l'' command       * easy to see ownership and permissions from regular linux ''ls -l'' command
Line 40: Line 41:
       * 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 ''getfacl'' and ''setfacl'' from ''chead'' or from compute nodes on the ''/data/'' directories. This is because we use NFSv4 which is incompatible. See the ''cfn-share-data'' script below, which uses ssh calls.
       * viewing permissions requires ''getfacl'' command instead of just ''ls -l''       * viewing permissions requires ''getfacl'' command instead of just ''ls -l''
       * 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
-      * you can't use ''getfacl'' and ''setfacl'' from ''chead'' or compute nodes on the ''/data/'' directories. This is because we use NFSv4 which is incompatible.+
   * PUBLIC directory and other shared groups   * PUBLIC directory and other shared groups
     * We've created a PUBLIC directory in everyone's data directory that we suggest you use for sharing files or data that are safely shared with everyone on the cluster. You can also create symlinks here to other files that are world-readable.     * We've created a PUBLIC directory in everyone's data directory that we suggest you use for sharing files or data that are safely shared with everyone on the cluster. You can also create symlinks here to other files that are world-readable.
Line 95: 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 data using ACLs:+We've created a script on the cluster (chead and nodes) for easily sharing data and viewing ACLs:
  
   cfn-share-data   cfn-share-data
-   + 
-This script should be in your search path. If not, look in ''/share/admin/'' \\ +  This script should be in your search path. If not, look in ''/share/admin/'' 
-Run the script with no parameters to print instructions and get a few examples.+  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 ''ssh'' under the hood to get/set ACLs.
  
 __To clear all ACL's__ from a file or directory (and its sub-directories), run this command: __To clear all ACL's__ from a file or directory (and its sub-directories), run this command:
  
-  setfacl -Rb <directory-or-file-to-clear>+  cfn-share-data -c <directory-or-file-to-clear>
  
 ====More detailed info on ACLs==== ====More detailed info on ACLs====
groupdatadirs.1495225658.txt.gz · Last modified: 2017/05/19 20:27 by mgstauff