---
title: "Manage dual/multiple lab affiliations on the FASRC cluster"
id: "22833"
type: "epkb_post_type_1"
slug: "dual-lab-affiliations-on-cluster"
published_at: "2020-01-29T23:48:05+00:00"
modified_at: "2024-07-15T20:33:40+00:00"
url: "https://docs.rc.fas.harvard.edu/kb/dual-lab-affiliations-on-cluster/"
markdown_url: "https://docs.rc.fas.harvard.edu/kb/dual-lab-affiliations-on-cluster.md"
excerpt: "We’re really glad you asked us this question! How you submit your jobs will determine what lab’s fairshare is selected. There are two levels to this question, the first concerning filesystem rights and the second SLURM submissions. JOBS/SLURM In SLURM,..."
taxonomy_epkb_post_type_1_category:
  - "Manage Account"
---

# Manage dual/multiple lab affiliations on the FASRC cluster

We’re really glad you asked us this question! How you submit your jobs will determine what lab’s [fairshare](/kb/fairshare/)
 is selected. There are two levels to this question, the first concerning filesystem rights and the second SLURM submissions.

### JOBS/SLURM

In [SLURM](https://docs.rc.fas.harvard.edu/kb/fairshare/)
, ensure that your primary group membership is set for the appropriate lab, and, if you [belong to an additional group](/kb/additional-groups/)
, ask the additional PI to send us an e-mail requesting that we add your account to their group in SLURM. When submitting SLURM jobs, by default all resource usage will be *charged* to your primary SLURM group. If you wish to submit jobs for the other group, use the `--account=2NDGROUPNAME` option on the `sbatch` or `salloc` (srun) command.

Example: `--account=jharvard_lab`

You can also include it as a directive in an `sbatch` script.

Example: `#SBATCH --account=jharvard_lab`

### FILESYSTEMS

For filesystem rights, your primary group ID (GID) is set to your primary lab group (the lab who sponsors your account). You can [request membership in additional group memberships via the Portal](/kb/additional-groups/)
.

If you belong to more than one group and would like to specify a non-primary group for file ownership, you need to use the command `newgrp`. For example, suppose your primary group is *jsmith_lab* and you also belong to *jharvard_lab*. When creating files in jharvard_lab shared storage, you would want to make sure your group is set to jharvard_lab, not jsmith_lab. For that, use the command: `newgrp 2NDGROUPNAME`

Example: `newgrp jharvard_lab`

To switch back to your primary group, you would use the same command but specify your original group: `newgrp jsmith_lab`

Bookmarkable Links

- [1. JOBS/SLURM](#JOBSSLURM)
- [2. FILESYSTEMS](#FILESYSTEMS)

Last UpdatedJuly 15, 2024
