<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<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;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.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;
font-family:"Tahoma",sans-serif;
color:windowtext;}
span.EmailStyle18
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:#1F497D;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Has anyone any experience of setting up users that can cancel jobs?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Buckley, Ronan <br>
<b>Sent:</b> Wednesday, April 18, 2018 9:06 AM<br>
<b>To:</b> 'slurm-users@lists.schedmd.com'<br>
<b>Subject:</b> RE: SLURM Operator Role (to cancel SLURM Jobs)<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">According to the online documentation:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><i><span style="color:#1F497D">“When using the Slurm db, users who have AdminLevel's defined (Operator or Admin) and users who are account coordinators are given the authority to invoke scancel on other user's jobs. A Slurm account coordinator
is a user who can modify settings for users in that Slurm account. The coordinator can also hold and cancel jobs submitted by other users in the account.”<o:p></o:p></span></i></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I get permission denied (from a user in my ‘jobadmin’ account), when trying to kill a job that is run from another user in my ‘jobadmin’ account:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">#:~> scancel -n test<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">scancel: error: Kill job error on job id 25063: Access/permission denied<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">#:~><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"># sacctmgr list user<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> User Def Acct Admin<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">---------- ---------- ---------<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> ethor Operator<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> mpern Operator<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> root Administ+<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">svcappuser Operator<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">svcsplitu+ Operator<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">#<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"># sacctmgr list users withcoord<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> User Def Acct Admin Coord Accounts<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">---------- ---------- --------- --------------------<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> ethor Operator jobadmin<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> mpern Operator jobadmin<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> root Administ+<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">svcappuser Operator jobadmin<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">svcsplitu+ Operator jobadmin<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">#<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"># sacctmgr list account<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> Account Descr Org<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">---------- -------------------- --------------------<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> jobadmin jobadmin root<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> root default root account root<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">#<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"># sacctmgr list account WithCoordinator<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> Account Descr Org Coord Accounts<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">---------- -------------------- -------------------- --------------------<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> jobadmin jobadmin root ethor,mpern,svcappu+<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> root default root account root<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">#<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Must I configure something else to allow the above 4 operator users to kill jobs?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Buckley, Ronan <br>
<b>Sent:</b> Tuesday, April 17, 2018 4:21 PM<br>
<b>To:</b> 'slurm-users@lists.schedmd.com'<br>
<b>Subject:</b> SLURM Operator Role (to cancel SLURM Jobs)<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Tahoma",sans-serif">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Tahoma",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Tahoma",sans-serif">I have given 4 users the operator role and they are all part of the coordinator accounts. However, when I su to the users in question, they get a permission denied error when trying to cancel
a job.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Tahoma",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Tahoma",sans-serif">What am I missing?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Tahoma",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Tahoma",sans-serif">Ronan<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Tahoma",sans-serif"><o:p> </o:p></span></p>
</div>
</body>
</html>