<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>So useradd is adding a Linux user, which sacctmgr creates a Slurm
user.</p>
<p>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.</p>
<p>Another way would be to make all your Linux users and then map
that in to Slurm using sacctmgr.</p>
<p>It really depends on if your Slurm users are a subset of your
regular users or not.<br>
</p>
<p>-Paul Edmon-<br>
</p>
<br>
<div class="moz-cite-prefix">On 9/12/2018 12:21 PM, Andre Torres
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:52BF612C-2135-4B06-9E32-38AFA19C82DE@ibmc.up.pt">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style>
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">Hi all,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">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 I can’t understand the difference
between user creation with “<i>useradd”</i> command and the
“<i>sacctmgr”</i> command <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">sacctmgr
create account name=test<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">sacctmgr
create user jdoe account=test<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">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 ?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Thanks in
advance</span><o:p></o:p></p>
</div>
</blockquote>
<br>
</body>
</html>