How to use a Share Group

Ask support to create a WestGrid Share Group for you, and tell them which users should be added to that group. This may take a day or two to do. You will get an e-mail whenever you are added or removed from a WestGrid Share Group.

These will be set up on all the WestGrid systems.

The directory you wish to share should be owned by the group
and permitted to the group. For example:
chgrp -R wg-group <dir>
chmod g+s <dir>

Note you must ensure that there is access to parent directories as well.

A directory and all the files in it can be permitted to the group as follows.

chmod -R g+rX /scratch/dirname

to set access for the /scratch/dirname directory and all its subdirectories. Note the uppercase X in the command. This will set X permissions on the subdirectories (needed for others to list the directories) as well as regular execute permission on executable files.

If you want the to allow other members to not only read files in the shared directory <dir>, but also permit write access, e.g., allow other members to create and change files in that directory, then all members in the group must add a line
umask 007
to the .bashrc or .cshrc file in their home directory. Furthermore, you must add write permission to the shared directory, e.g.,
chmod -R g+rwX <dir>
which would allow read and write access to the directory <dir> and all its files and subdirectories.

last edited 2006-08-10 18:35:15 by MartinSiegert

For further information or to suggest improvements to this documentation, please contact support@westgrid.ca .