<div dir="ltr">At one point in time we would also use the job_submit.lua to add users, however, I cannot recommend it in general since job_submit runs while locks are held within slurmcltd, which could have dramatic performance or even functionality impacts if there are delays in adding the user.<br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><font face="courier new, monospace" size="1">----</font></div><div><font face="arial, helvetica, sans-serif"><font size="2">Doug Jacobsen, Ph.D.</font><br></font></div><div><font face="arial, helvetica, sans-serif" size="1">NERSC Computer Systems Engineer</font></div><div><font face="arial, helvetica, sans-serif" size="1">Acting Group Lead, Computational Systems Group</font></div><div><font size="1"><font face="arial, helvetica, sans-serif"><a href="http://www.nersc.gov" target="_blank">National Energy Research Scientific Computing Center</a></font><br></font></div><div><font size="1"><a href="mailto:dmjacobsen@lbl.gov" style="font-family:arial,helvetica,sans-serif" target="_blank">dmjacobsen@lbl.gov</a><span style="font-family:arial,helvetica,sans-serif"></span></font><br></div><div><font size="1"><br></font></div><div><font size="1"><font face="courier new, monospace"><span style="color:rgb(136,136,136)">------------- __o</span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">---------- _ '\<,_</span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">----------(_)/  (_)__________________________</span></font><br></font></div><div style="font-family:arial;font-size:small"><br></div></div></div></div></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Sep 13, 2018 at 7:40 AM Eric F. Alemany <<a href="mailto:ealemany@stanford.edu">ealemany@stanford.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div dir="auto">
Hi Paul
<div><br>
</div>
<div>You said </div>
<div><br>
</div>
<div>“<span style="background-color:rgba(255,255,255,0)">Another way would be to make all your Linux users and then map that in to Slurm using sacctmgr.”</span></div>
<div><br>
</div>
<div>I am curious to know how you do that.</div>
<div><br>
</div>
<div>Thank you</div>
<div><br>
</div>
<div>Best</div>
<div>Eric <br>
<br>
<div id="m_-5859592791068468168AppleMailSignature">
<div style="direction:inherit"><span style="text-align:-webkit-auto;background-color:rgba(255,255,255,0)">._____________________________________________________________________________________________________</span></div>
<div style="text-align:-webkit-auto;word-wrap:break-word">
<div><span style="background-color:rgba(255,255,255,0)"><br>
</span></div>
<span style="background-color:rgba(255,255,255,0)"><b>
<div><b style="text-align:-webkit-auto">Eric F.  Alemany</b></div>
</b>
<div><i style="text-align:-webkit-auto">System Administrator for Research</i></div>
</span>
<div><span style="background-color:rgba(255,255,255,0)"><br>
</span></div>
<div><span style="text-align:-webkit-auto;background-color:rgba(255,255,255,0)">Division of Radiation & Cancer  Biology</span></div>
<div><span style="text-align:-webkit-auto;background-color:rgba(255,255,255,0)">Department of Radiation Oncology</span></div>
<div><span style="background-color:rgba(255,255,255,0)"><br>
</span></div>
<div><span style="text-align:-webkit-auto;background-color:rgba(255,255,255,0)">Stanford University School of Medicine</span></div>
<div><span style="text-align:-webkit-auto;background-color:rgba(255,255,255,0)">Stanford, California 94305</span></div>
<div><span style="background-color:rgba(255,255,255,0)"><br>
</span></div>
<div><span style="background-color:rgba(255,255,255,0)"><font style="text-align:-webkit-auto">Tel:</font><a href="tel:1-650-498-7969" dir="ltr" target="_blank">1-650-498-7969</a><font style="text-align:-webkit-auto"> 
 No Texting</font></span></div>
<div><span style="background-color:rgba(255,255,255,0)"><font style="text-align:-webkit-auto">Fax:</font><a href="tel:1-650-723-7382" dir="ltr" target="_blank">1-650-723-7382</a></span></div>
</div>
</div>
<div><br>
On Sep 13, 2018, at 01:09, Loris Bennett <<a href="mailto:loris.bennett@fu-berlin.de" target="_blank">loris.bennett@fu-berlin.de</a>> wrote:<br>
<br>
</div>
<blockquote type="cite">
<div><span>Hi Paul,</span><br>
<span></span><br>
<span>I'd be interested in seeing your Lua submit script, if you're willing to</span><br>
<span>share.</span><br>
<span></span><br>
<span>Until now I had thought that the most elegant way of setting up Slurm</span><br>
<span>users would be via a PAM module analogous to pam_mkhomedir, the simplest</span><br>
<span>option being to use pam_script.</span><br>
<span></span><br>
<span>However, given that we do have users who somehow never get round to</span><br>
<span>submitting a job before their HPC access expires, setting up the Slurm</span><br>
<span>account when the first job is submitted seems quite appealing.</span><br>
<span></span><br>
<span>Cheers,</span><br>
<span></span><br>
<span>Loris</span><br>
<span></span><br>
<span>Paul Edmon <<a href="mailto:pedmon@cfa.harvard.edu" target="_blank">pedmon@cfa.harvard.edu</a>> writes:</span><br>
<span></span><br>
<blockquote type="cite"><span>So useradd is adding a Linux user, which sacctmgr creates a Slurm user.</span><br>
</blockquote>
<blockquote type="cite"><span></span><br>
</blockquote>
<blockquote type="cite"><span>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>
</blockquote>
<blockquote type="cite"><span></span><br>
</blockquote>
<blockquote type="cite"><span>Another way would be to make all your Linux users and then map that in to Slurm using sacctmgr.</span><br>
</blockquote>
<blockquote type="cite"><span></span><br>
</blockquote>
<blockquote type="cite"><span>It really depends on if your Slurm users are a subset of your regular users or not.</span><br>
</blockquote>
<blockquote type="cite"><span></span><br>
</blockquote>
<blockquote type="cite"><span>-Paul Edmon-</span><br>
</blockquote>
<blockquote type="cite"><span></span><br>
</blockquote>
<blockquote type="cite"><span>On 9/12/2018 12:21 PM, Andre Torres wrote:</span><br>
</blockquote>
<blockquote type="cite"><span></span><br>
</blockquote>
<blockquote type="cite"><span>Hi all,</span><br>
</blockquote>
<blockquote type="cite"><span></span><br>
</blockquote>
<blockquote type="cite"><span>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>
</blockquote>
<blockquote type="cite"><span>I can’t understand the difference between user creation with “useradd” command and the “sacctmgr” command
</span><br>
</blockquote>
<blockquote type="cite"><span></span><br>
</blockquote>
<blockquote type="cite"><span>sacctmgr create account name=test</span><br>
</blockquote>
<blockquote type="cite"><span></span><br>
</blockquote>
<blockquote type="cite"><span>sacctmgr create user jdoe account=test</span><br>
</blockquote>
<blockquote type="cite"><span></span><br>
</blockquote>
<blockquote type="cite"><span>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>
</blockquote>
<blockquote type="cite"><span></span><br>
</blockquote>
<blockquote type="cite"><span>Thanks in advance</span><br>
</blockquote>
<blockquote type="cite"><span></span><br>
</blockquote>
<blockquote type="cite"><span></span><br>
</blockquote>
<span>-- </span><br>
<span>Dr. Loris Bennett (Mr.)</span><br>
<span>ZEDAT, Freie Universität Berlin         Email <a href="mailto:loris.bennett@fu-berlin.de" target="_blank">
loris.bennett@fu-berlin.de</a></span><br>
<span></span><br>
</div>
</blockquote>
</div>
</div>

</blockquote></div>