Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. All folders in research space need to have the group ownership same as the group name and the set-group-ID (setgid) bit. By default, your research directory (e.g. /mnt/research/<GroupName>) is set with the right group ownership and set-group-ID (setgid) bit:

    Code Block
    languagebash
    $ ls -ld /mnt/research/<GroupName>/
    drwxrws--- 9 ProjInvst <GroupName> 8192 Jul 22 08:38 /mnt/research/<GroupName>/

    The letter "s" in the permissions drwxrws--- of the directory is the setgid which makes new files and sub-directories created inside to inherit its group ownership rather than the primary group of the user. If the settings of a sub-directory are not right, there could be a "Disk quota exceeded" problem when create, copy or transfer files under it. (See next section: "Quota setting on research space" for more explanations.) Users can run the following two commands to ensure all files and directories in your research space have the right settings:

    Code Block
    languagebash
    find /mnt/research/<GroupName>/ -not -group <GroupName> -print0 |xargs -0 chgrp <GroupName>
    find /mnt/research/<GroupName>/ -type d -print0 |xargs -0 chmod g+s

    If you get permission issues to work on some files or directories, their owners also need to run the commands above. PI of the research space can also submit a ticket to request the above corrections.

  2. Do not preserve group ownership when copying files to your research space. Ideally, with the setting of set-group-ID bit, all files and directories in the research space should have the right group ownership. However, if you copy files from other places and preserve ownership (such as with command using "cp -p" or "mv" command), the group ownership might not be kept the same as the research space.
  3. Please use rsync command with the option --chmod=Dg+s to transfer files from a local computer to your research space. For example, use the command:

    Code Block
    languagebash
    rsync -avz TestDir --chmod=Dg+s <username>@rsync.hpcc.msu.edu:/mnt/research/<GroupName>/

    to transfer a directory TestDir in your local computer to /mnt/research/<GroupName>/ in HPCC. This will automatically make all copied directories with set-group-ID bit.

  4. Please set umask 0007 or any lower value:

    Code Block
    languagebash
    $ umask 0007

    In this way, your created files or directories are readable, writable and executable to all group users. Since you might need to do this every time in a new session, it is a good idea to put the command in the file ~/.bashrc so it is automatically executed at the beginning of every session. Alternatively, you can run the following powertools command once to add the line  umask 0002  in the  ~/.bashrc file:

    Code Block
    languagebash
    $ umask_in_bash                 # powertools command


...