Sharing Within A Cluster

From UFRC
Revision as of 16:02, 19 July 2012 by Moskalenko (talk | contribs)
Jump to navigation Jump to search


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.