<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p><br>
    </p>
    <p>Just running 'id' provides info for the current user in the
      working environment. Here, you are in a bash shell started by
      slurmd which is running as root.</p>
    <p>Running 'id <user>' returns the default settings for the
      user.</p>
    <p>Try doing things like 'chgrp' then then run 'id' and you will see
      the changes caused by that.</p>
    <p>Brian Andrus<br>
    </p>
    <div class="moz-cite-prefix">On 4/19/2021 4:41 AM, Bruno Gomes
      Pessanha wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CABvONrHmM9g2FSBQtxm7vkO_P=WzLdBa0Ck4P3tTAX8hzaROJQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">That is showing that I'm in different groups
        depending on how I run the command id.
        <div><br>
        </div>
        <div>PS: I'm running the controller and workers in docker
          containers using privileged mode.</div>
        <div><br>
        </div>
        <div>Bruno</div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Mon, 19 Apr 2021 at 13:24,
          Dustin Lang <<a href="mailto:dstndstn@gmail.com"
            moz-do-not-send="true">dstndstn@gmail.com</a>> wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div dir="ltr">
            <div>This is telling you you're root in the docker
              container, right?</div>
            <div><br>
            </div>
            <div><br>
            </div>
          </div>
          <br>
          <div class="gmail_quote">
            <div dir="ltr" class="gmail_attr">On Mon, Apr 19, 2021 at
              4:51 AM Bruno Gomes Pessanha <<a
                href="mailto:bruno.pessanha@gmail.com" target="_blank"
                moz-do-not-send="true">bruno.pessanha@gmail.com</a>>
              wrote:<br>
            </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
              0.8ex;border-left:1px solid
              rgb(204,204,204);padding-left:1ex">
              <div dir="ltr">
                <div>Somebody could help me with this?</div>
                <div>Pretty strange behaviour. If I run "id: it shows
                  different groups if I run "id myuser":</div>
                <div><br>
                </div>
                [root@ctrl-slurm /]# srun --pty -p local --uid myuser
                bash<br>
                <br>
                <div>[myuser@node-slurm /]$ id<br>
                  uid=868295925(myuser) gid=0(root)
                  groups=0(root),979(cgred)<br>
                  <br>
                  <div>[myuser@node-slurm /]$ id myuser<br>
                    uid=868295925(myuser) gid=1001(myuser)
                    groups=1001(myuser),978(docker)<font color="#888888"><br
                        clear="all">
                      <div><br>
                      </div>
                      --<br>
                      <div dir="ltr">Bruno</div>
                    </font></div>
                </div>
              </div>
            </blockquote>
          </div>
        </blockquote>
      </div>
      <br clear="all">
      <div><br>
      </div>
      -- <br>
      <div dir="ltr" class="gmail_signature">Bruno Gomes Pessanha</div>
    </blockquote>
  </body>
</html>