<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>I am guessing that you are running VMs in the cloud, maybe even
      Azure.<br>
    </p>
    <p>By default, they set /tmp to 0700 when the node is deployed. It
      is up to you to change that as needed as part of the cloud-init or
      other finalize step.</p>
    <p>I took to creating /tmp/scratch with permissions of 1777 and then
      symlink that to /scratch which is where users are directed to.</p>
    <p>You could just do "chmod 1777 /tmp" as well<br>
    </p>
    <p><br>
    </p>
    <p>Caveat: If this is the ephemeral ramdisk/ssd/etc disk that is
      created each time the node starts up, you have to do the above
      step every boot.</p>
    <p><br>
    </p>
    <p>Brian Andrus<br>
    </p>
    <p><br>
    </p>
    <p><br>
    </p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 2/2/2022 8:59 PM, William Zhang
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:SY4P282MB3680AD4687F9596F970D87788D289@SY4P282MB3680.AUSP282.PROD.OUTLOOK.COM">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <style type="text/css" style="display:none;">P {margin-top:0;margin-bottom:0;}</style>
      <div style="font-family: Calibri, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
        <span><span dir="ltr"><span
              style="font-size:1rem;text-align:justify">Hi ,</span></span></span>
        <div class="x_x_ms-outlook-mobile-reference-message">
          <div
            style="line-height:1.5;text-align:justify;text-justify:inter-ideograph">
            <div style="text-justify:inter-ideograph">
              <div>
                <div>    My slurm version is 20.11.5 .</div>
                <div>    I use job_container/tmpfs to set up a private
                  /tmp ,but the permission is 700. Normal user can not
                  read or write.
                </div>
                <div><br>
                </div>
                <div>     drwx------     2 root root      6 Jan 31 01:32
                  tmp</div>
                  <br>
                   <img class="x__17IHdLFIYqNWcRRfHpU3up x_w-508 x_h-71
                  _17IHdLFIYqNWcRRfHpU3up w-508 h-71" size="39747"
style="min-width:auto;min-height:auto;max-width:100%;height:auto;cursor:pointer"
                  contenttype="image/png" data-outlook-trace="F:2|T:2"
                  src="cid:part1.ivQKii5J.8NDC5aes@gmail.com"><br>
                <div><br>
                </div>
                <div>I think the  permission should be 700 ,or the owner
                  of the directory should be the user which run the
                  job. 
                  <br>
                </div>
                <div><br>
                </div>
                <div>  slurm.conf </div>
                <div>    JobContainerType=job_container/tmpfs</div>
                <div>    TmpFS=/tmp</div>
                <div><br>
                </div>
                <div>  job_container.conf     <br>
                </div>
                <div>NodeName=g0025 AutoBasePath=true BasePath=/ram2</div>
                <br>
                <div>    </div>
                <div>   findmnt</div>
                <div><img class="x__17IHdLFIYqNWcRRfHpU3up x_w-1052
                    x_h-56 _17IHdLFIYqNWcRRfHpU3up w-1052 h-56"
                    size="32079" style="width: 804px; height: 42px;
                    min-height: auto; min-width: auto; cursor: pointer;
                    max-width: initial;" contenttype="image/png"
                    data-outlook-trace="F:2|T:2"
                    src="cid:part2.IFZW304N.0y1G3cTl@gmail.com"
                    width="804" height="42"></div>
                <span>    </span></div>
            </div>
          </div>
        </div>
        <br>
      </div>
    </blockquote>
  </body>
</html>