<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Does anyone know how to change email settings?<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 9/13/2018 7:59 AM, Damien François
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:93F61073-D416-4F61-8A4E-328171B2F4DA@uclouvain.be">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <div class="">Just to add my 2c to the discussion: at our site, we
        use a utility we wrote [1] that monitors our LDAP and triggers
        Ansible playbooks upon addition or modification in the list of
        users. We have playbooks to setup the different directories for
        the user in the many filesystems, along with the respective
        quotas, setup SSH keys, and register to Slurm. To register to
        Slurm, we use a Slurm user module for Ansible [2].</div>
      <div class=""><br class="">
      </div>
      <div class="">damien</div>
      <div class=""><br class="">
      </div>
      <div class="">[1] <a
          href="https://github.com/damienfrancois/slufl2" class=""
          moz-do-not-send="true">https://github.com/damienfrancois/slufl2</a></div>
      <div class="">[2] <a
          href="https://github.com/dylex/ansible-hpc/blob/master/slurm.py"
          class="" moz-do-not-send="true">https://github.com/dylex/ansible-hpc/blob/master/slurm.py</a></div>
      <div class="">
        <div style="color: rgb(0, 0, 0); letter-spacing: normal;
          orphans: auto; text-align: start; text-indent: 0px;
          text-transform: none; white-space: normal; widows: auto;
          word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap:
          break-word; -webkit-nbsp-mode: space; -webkit-line-break:
          after-white-space;" class="">
          <div class=""><br class="">
          </div>
          <div class=""><span style="color: rgb(0, 0, 0); font-family:
              Helvetica; font-style: normal; font-variant-caps: normal;
              font-weight: normal; letter-spacing: normal; orphans:
              auto; text-align: start; text-indent: 0px; text-transform:
              none; white-space: normal; widows: auto; word-spacing:
              0px; -webkit-text-stroke-width: 0px; font-size: 11px;
              font-variant-ligatures: normal; font-variant-position:
              normal; font-variant-numeric: normal;
              font-variant-alternates: normal; font-variant-east-asian:
              normal;" class=""><span><span><span><span style="color:
                      rgb(0, 0, 0); font-family: Helvetica; font-size:
                      11px; font-style: normal; font-variant-caps:
                      normal; font-weight: normal; letter-spacing:
                      normal; orphans: auto; text-align: start;
                      text-indent: 0px; text-transform: none;
                      white-space: normal; widows: auto; word-spacing:
                      0px; -webkit-text-stroke-width: 0px;
                      font-variant-ligatures: normal;
                      font-variant-position: normal;
                      font-variant-numeric: normal;
                      font-variant-alternates: normal;
                      font-variant-east-asian: normal;" class=""><span><span><span><span
                              style="color: rgb(0, 0, 0); font-family:
                              Helvetica; font-size: 11px; font-style:
                              normal; font-variant-caps: normal;
                              font-weight: normal; letter-spacing:
                              normal; orphans: auto; text-align: start;
                              text-indent: 0px; text-transform: none;
                              white-space: normal; widows: auto;
                              word-spacing: 0px;
                              -webkit-text-stroke-width: 0px;
                              font-variant-ligatures: normal;
                              font-variant-position: normal;
                              font-variant-numeric: normal;
                              font-variant-alternates: normal;
                              font-variant-east-asian: normal;" class=""><span
                                style="font-variant-ligatures: normal;
                                font-variant-position: normal;
                                font-variant-numeric: normal;
                                font-variant-alternates: normal;
                                font-variant-east-asian: normal;"
                                class=""></span></span>
                            <div style="color: rgb(0, 0, 0);
                              font-family: Helvetica; font-style:
                              normal; font-variant-caps: normal;
                              font-weight: normal; letter-spacing:
                              normal; orphans: auto; text-align: start;
                              text-indent: 0px; text-transform: none;
                              white-space: normal; widows: auto;
                              word-spacing: 0px;
                              -webkit-text-stroke-width: 0px; font-size:
                              12px;" class=""><br class="">
                            </div>
                          </span></span></span></span></span></span></span></span></div>
        </div>
      </div>
      <br class="">
      <div>
        <blockquote type="cite" class="">
          <div class="">On 13 Sep 2018, at 16:41, Paul Edmon <<a
              href="mailto:pedmon@cfa.harvard.edu" class=""
              moz-do-not-send="true">pedmon@cfa.harvard.edu</a>>
            wrote:</div>
          <br class="Apple-interchange-newline">
          <div class="">
            <meta http-equiv="Content-Type" content="text/html;
              charset=utf-8" class="">
            <div text="#000000" bgcolor="#FFFFFF" class="">
              <p class="">So the Lua script I posted only does it for
                people who submit to the cluster.  To do it for all
                users it should just be a simple bash script to do that,
                I don't have one put together though.</p>
              <p class="">-Paul Edmon-<br class="">
              </p>
              <br class="">
              <div class="moz-cite-prefix">On 09/13/2018 10:29 AM, Eric
                F. Alemany wrote:<br class="">
              </div>
              <blockquote type="cite"
                cite="mid:01475E6E-14B8-4ECD-B6BB-C8E10D9A8E78@stanford.edu"
                class=""> Hi Paul
                <div class=""><br class="">
                </div>
                <div class="">You said </div>
                <div class=""><br class="">
                </div>
                <div class="">“<span style="background-color: rgba(255,
                    255, 255, 0);" class="">Another way would be to make
                    all your Linux users and then map that in to Slurm
                    using sacctmgr.”</span></div>
                <div class=""><br class="">
                </div>
                <div class="">I am curious to know how you do that.</div>
                <div class=""><br class="">
                </div>
                <div class="">Thank you</div>
                <div class=""><br class="">
                </div>
                <div class="">Best</div>
                <div class="">Eric <br class="">
                  <br class="">
                  <div class="">
                    <div style="direction: inherit;" class=""><span
                        style="text-align: -webkit-auto;
                        background-color: rgba(255, 255, 255, 0);"
                        class="">._____________________________________________________________________________________________________</span></div>
                    <div class="" style="text-align: -webkit-auto;
                      orphans: 2; widows: 2; word-wrap: break-word;
                      -webkit-nbsp-mode: space; -webkit-line-break:
                      after-white-space;">
                      <div class="" style="orphans: auto; widows: auto;"><span
                          class="" style="background-color: rgba(255,
                          255, 255, 0);"><br class="">
                        </span></div>
                      <span class="" style="background-color: rgba(255,
                        255, 255, 0);"><b class="">
                          <div class="" style="orphans: auto; widows:
                            auto;"><b class="" style="text-align:
                              -webkit-auto;">Eric F.  Alemany</b></div>
                        </b>
                        <div class="" style="orphans: auto; widows:
                          auto;"><i class="" style="text-align:
                            -webkit-auto;">System Administrator for
                            Research</i></div>
                      </span>
                      <div class="" style="orphans: auto; widows: auto;"><span
                          class="" style="background-color: rgba(255,
                          255, 255, 0);"><br class="">
                        </span></div>
                      <div class="" style="orphans: auto; widows: auto;"><span
                          class="" style="text-align: -webkit-auto;
                          background-color: rgba(255, 255, 255, 0);">Division
                          of Radiation & Cancer  Biology</span></div>
                      <div class="" style="orphans: auto; widows: auto;"><span
                          class="" style="text-align: -webkit-auto;
                          background-color: rgba(255, 255, 255, 0);">Department
                          of Radiation Oncology</span></div>
                      <div class="" style="orphans: auto; widows: auto;"><span
                          class="" style="background-color: rgba(255,
                          255, 255, 0);"><br class="">
                        </span></div>
                      <div class="" style="orphans: auto; widows: auto;"><span
                          class="" style="text-align: -webkit-auto;
                          background-color: rgba(255, 255, 255, 0);">Stanford
                          University School of Medicine</span></div>
                      <div class="" style="orphans: auto; widows: auto;"><span
                          class="" style="text-align: -webkit-auto;
                          background-color: rgba(255, 255, 255, 0);">Stanford,
                          California 94305</span></div>
                      <div class="" style="orphans: auto; widows: auto;"><span
                          class="" style="background-color: rgba(255,
                          255, 255, 0);"><br class="">
                        </span></div>
                      <div class="" style="orphans: auto; widows: auto;"><span
                          class="" style="background-color: rgba(255,
                          255, 255, 0);"><font class=""
                            style="text-align: -webkit-auto;">Tel:</font><a
                            href="tel:1-650-498-7969" dir="ltr"
                            x-apple-data-detectors="true"
                            x-apple-data-detectors-type="telephone"
                            x-apple-data-detectors-result="1"
                            moz-do-not-send="true" class="">1-650-498-7969</a><font
                            class="" style="text-align: -webkit-auto;"> 
                            No Texting</font></span></div>
                      <div class="" style="orphans: auto; widows: auto;"><span
                          class="" style="background-color: rgba(255,
                          255, 255, 0);"><font class=""
                            style="text-align: -webkit-auto;">Fax:</font><a
                            href="tel:1-650-723-7382" dir="ltr"
                            x-apple-data-detectors="true"
                            x-apple-data-detectors-type="telephone"
                            x-apple-data-detectors-result="2"
                            moz-do-not-send="true" class="">1-650-723-7382</a></span></div>
                    </div>
                  </div>
                  <div class=""><br class="">
                    On Sep 13, 2018, at 01:09, Loris Bennett <<a
                      href="mailto:loris.bennett@fu-berlin.de"
                      moz-do-not-send="true" class="">loris.bennett@fu-berlin.de</a>>
                    wrote:<br class="">
                    <br class="">
                  </div>
                  <blockquote type="cite" class="">
                    <div class=""><span class="">Hi Paul,</span><br
                        class="">
                      <span class=""></span><br class="">
                      <span class="">I'd be interested in seeing your
                        Lua submit script, if you're willing to</span><br
                        class="">
                      <span class="">share.</span><br class="">
                      <span class=""></span><br class="">
                      <span class="">Until now I had thought that the
                        most elegant way of setting up Slurm</span><br
                        class="">
                      <span class="">users would be via a PAM module
                        analogous to pam_mkhomedir, the simplest</span><br
                        class="">
                      <span class="">option being to use pam_script.</span><br
                        class="">
                      <span class=""></span><br class="">
                      <span class="">However, given that we do have
                        users who somehow never get round to</span><br
                        class="">
                      <span class="">submitting a job before their HPC
                        access expires, setting up the Slurm</span><br
                        class="">
                      <span class="">account when the first job is
                        submitted seems quite appealing.</span><br
                        class="">
                      <span class=""></span><br class="">
                      <span class="">Cheers,</span><br class="">
                      <span class=""></span><br class="">
                      <span class="">Loris</span><br class="">
                      <span class=""></span><br class="">
                      <span class="">Paul Edmon <<a
                          href="mailto:pedmon@cfa.harvard.edu"
                          moz-do-not-send="true" class="">pedmon@cfa.harvard.edu</a>>
                        writes:</span><br class="">
                      <span class=""></span><br class="">
                      <blockquote type="cite" class=""><span class="">So
                          useradd is adding a Linux user, which sacctmgr
                          creates a Slurm user.</span><br class="">
                      </blockquote>
                      <blockquote type="cite" class=""><span class=""></span><br
                          class="">
                      </blockquote>
                      <blockquote type="cite" class=""><span class="">What
                          we do is that we run AD for our Linux user
                          managment. We then in our job submit lua
                          script look to see if the user has an account
                          in slurm and if they don't we create it.</span><br
                          class="">
                      </blockquote>
                      <blockquote type="cite" class=""><span class=""></span><br
                          class="">
                      </blockquote>
                      <blockquote type="cite" class=""><span class="">Another
                          way would be to make all your Linux users and
                          then map that in to Slurm using sacctmgr.</span><br
                          class="">
                      </blockquote>
                      <blockquote type="cite" class=""><span class=""></span><br
                          class="">
                      </blockquote>
                      <blockquote type="cite" class=""><span class="">It
                          really depends on if your Slurm users are a
                          subset of your regular users or not.</span><br
                          class="">
                      </blockquote>
                      <blockquote type="cite" class=""><span class=""></span><br
                          class="">
                      </blockquote>
                      <blockquote type="cite" class=""><span class="">-Paul
                          Edmon-</span><br class="">
                      </blockquote>
                      <blockquote type="cite" class=""><span class=""></span><br
                          class="">
                      </blockquote>
                      <blockquote type="cite" class=""><span class="">On
                          9/12/2018 12:21 PM, Andre Torres wrote:</span><br
                          class="">
                      </blockquote>
                      <blockquote type="cite" class=""><span class=""></span><br
                          class="">
                      </blockquote>
                      <blockquote type="cite" class=""><span class="">Hi
                          all,</span><br class="">
                      </blockquote>
                      <blockquote type="cite" class=""><span class=""></span><br
                          class="">
                      </blockquote>
                      <blockquote type="cite" class=""><span class="">I’m
                          new to slurm and I’m confused regarding user
                          creation. I have an installation with 1 login
                          node and 5 compute nodes. If I create a user
                          across all the nodes with the same uid and gid
                          I can execute jobs but</span><br class="">
                      </blockquote>
                      <blockquote type="cite" class=""><span class="">I
                          can’t understand the difference between user
                          creation with “useradd” command and the
                          “sacctmgr” command </span><br class="">
                      </blockquote>
                      <blockquote type="cite" class=""><span class=""></span><br
                          class="">
                      </blockquote>
                      <blockquote type="cite" class=""><span class="">sacctmgr
                          create account name=test</span><br class="">
                      </blockquote>
                      <blockquote type="cite" class=""><span class=""></span><br
                          class="">
                      </blockquote>
                      <blockquote type="cite" class=""><span class="">sacctmgr
                          create user jdoe account=test</span><br
                          class="">
                      </blockquote>
                      <blockquote type="cite" class=""><span class=""></span><br
                          class="">
                      </blockquote>
                      <blockquote type="cite" class=""><span class="">Also,
                          is there anyway of creating a user at login
                          node and replicate to the compute nodes ? What
                          is the best practice for user creation ?</span><br
                          class="">
                      </blockquote>
                      <blockquote type="cite" class=""><span class=""></span><br
                          class="">
                      </blockquote>
                      <blockquote type="cite" class=""><span class="">Thanks
                          in advance</span><br class="">
                      </blockquote>
                      <blockquote type="cite" class=""><span class=""></span><br
                          class="">
                      </blockquote>
                      <blockquote type="cite" class=""><span class=""></span><br
                          class="">
                      </blockquote>
                      <span class="">-- </span><br class="">
                      <span class="">Dr. Loris Bennett (Mr.)</span><br
                        class="">
                      <span class="">ZEDAT, Freie Universität Berlin
                                Email <a
                          href="mailto:loris.bennett@fu-berlin.de"
                          moz-do-not-send="true" class="">
                          loris.bennett@fu-berlin.de</a></span><br
                        class="">
                      <span class=""></span><br class="">
                    </div>
                  </blockquote>
                </div>
              </blockquote>
              <br class="">
            </div>
          </div>
        </blockquote>
      </div>
      <br class="">
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">________________________
Ariel Balter
<a class="moz-txt-link-abbreviated" href="mailto:ariel@arielbalter.com">ariel@arielbalter.com</a>
<a class="moz-txt-link-abbreviated" href="mailto:ariel.balter@gmail.com">ariel.balter@gmail.com</a>
509-713-0087
<a class="moz-txt-link-freetext" href="http://arielbalter.com">http://arielbalter.com</a></pre>
  </body>
</html>