Difference between revisions of "Sharing Within A Cluster"

From UFRC
Jump to navigation Jump to search
Line 1: Line 1:
[[Category:Biology]]
+
[[Category:Data]]
[[Category:Basics]]
 
 
=Purpose=
 
=Purpose=
 
Allows users to share files between themselves on the cluster
 
Allows users to share files between themselves on the cluster

Revision as of 20:20, 2 August 2021

Purpose

Allows users to share files between themselves on the cluster

Method

For groups that want several people to work on the same data it may be useful to read the following information:

  • To make the data accessible to all group members, but not to the users outside of the group edit the '.bashrc' file in each group member's home directory and add the following line to it:
umask 0007

After that every newly created file will have "-rw-rw----" permissions and every new directory will have "-rwxrwx---" permissions giving full access to the user and the group, but not to anyone else.

  • To change permissions on an existing directory tree to correspond to the above set change to the directory above the one you'd like to start from and run
find DIRECTORY -type d -exec chmod 770 {} \;
find DIRECTORY -type f -exec chmod 660 {} \;

where 'DIRECTORY' is the name of the topmost directory in the tree you want to change permissions on. Note that the user who runs the above commands must be the current owner of the directory tree. The commands may take a while to run if the directory tree is large.