<div dir="ltr">Hey Will,<div><br></div><div>It maybe just as easy in your case to just build it directly, it's just one c file and makefile</div><div><br></div><div><a href="https://github.com/SchedMD/slurm/tree/master/contribs/pam">https://github.com/SchedMD/slurm/tree/master/contribs/pam</a><br></div><div><br></div><div>Regards,</div><div>Alex</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 4, 2018 at 2:11 PM, Will Dennis <span dir="ltr"><<a href="mailto:wdennis@nec-labs.com" target="_blank">wdennis@nec-labs.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple">
<div class="m_-1637631489049530667WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I just tried unpacking the original archive, and running “./configure, make, make contrib” but no luck – still no ‘pam_slurm.so’ file created... What am I missing
here?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> slurm-users [mailto:<a href="mailto:slurm-users-bounces@lists.schedmd.com" target="_blank">slurm-users-bounces@<wbr>lists.schedmd.com</a>]
<b>On Behalf Of </b>Will Dennis<br>
<b>Sent:</b> Friday, May 04, 2018 2:50 PM<br>
<b>To:</b> <a href="mailto:slurm-users@lists.schedmd.com" target="_blank">slurm-users@lists.schedmd.com</a><br>
<b>Subject:</b> Re: [slurm-users] Finding / compiling "pam_slurm.so" for Ubuntu 16.04<u></u><u></u></span></p>
</div>
</div><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">(trying to reply to Gennaro Oliva’s message as I did not receive a copy of my original mssg or reply from the list – fixed now)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I built my .deb from the Slurm sources via the following method:</span>
<span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="m_-1637631489049530667MsoListParagraph"><u></u><span style="font-size:11.0pt;font-family:Symbol;color:#1f497d"><span>·<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Downloaded the then-current Slurm source ‘slurm-16.05.4.tar.bz2’ from <a href="http://schedmd.com" target="_blank">schedmd.com</a><u></u><u></u></span></p>
<p class="m_-1637631489049530667MsoListParagraph"><u></u><span style="font-size:11.0pt;font-family:Symbol;color:#1f497d"><span>·<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Renamed & converted to .tar.gz to fit Debian packaging guidelines: bunzip2 -c < slurm-16.05.4.tar.bz2 | gzip -9 -c > slurm-wlm-necla_16.05.4.orig.<wbr>tar.gz<u></u><u></u></span></p>
<p class="m_-1637631489049530667MsoListParagraph"><u></u><span style="font-size:11.0pt;font-family:Symbol;color:#1f497d"><span>·<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Unpacked the tarball<u></u><u></u></span></p>
<p class="m_-1637631489049530667MsoListParagraph"><u></u><span style="font-size:11.0pt;font-family:Symbol;color:#1f497d"><span>·<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Decended into the unpacked source directory, and created a subdir named ‘debian’<u></u><u></u></span></p>
<p class="m_-1637631489049530667MsoListParagraph"><u></u><span style="font-size:11.0pt;font-family:Symbol;color:#1f497d"><span>·<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">In the debian directory, created the requisite packaging files<u></u><u></u></span></p>
<p class="m_-1637631489049530667MsoListParagraph"><u></u><span style="font-size:11.0pt;font-family:Symbol;color:#1f497d"><span>·<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Then ran the command ‘debuild -us –uc’ in the top-level source directory to compile the source and package it into a .deb file<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">The result was (only) one .deb file, namely ‘slurm-wlm-necla_16.05.4-1_<wbr>amd64.deb’. As noted before, this contained many .so files, but not ‘pam_slurm.so’.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I could build the needed ‘pam_slurm.so’ file directly, but my attempts so far have failed (ran ‘./configure’ in the top-level unpacked source dir, then descended
into contribs/pam and ran ‘make’, which failed with the message “make: Nothing to be done for 'all'.”)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Will Dennis
<br>
<b>Sent:</b> Thursday, May 03, 2018 11:07 PM<br>
<b>To:</b> <a href="mailto:slurm-users@lists.schedmd.com" target="_blank">slurm-users@lists.schedmd.com</a><br>
<b>Subject:</b> Finding / compiling "pam_slurm.so" for Ubuntu 16.04<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Hello everyone,<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Back a year ago or so, I started a new SLURM cluster, and had produced a .deb file from the then-current release archive (v16.05.4) that I compiled on a U16.04 host. I have successfully used that .deb which I included in our local custom
repo to roll out the compute nodes of my cluster (which also run U16.04 of course.) For what we have tried to do with it, it all appears to work well.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Now I am attempting to restrict users from logging into the compute nodes via the “pam_slurm” module as described at <a href="https://raw.githubusercontent.com/SchedMD/slurm/5505db3a5076bfc301dba16e83fbc133e833cbd4/contribs/pam/README" target="_blank">https://raw.<wbr>githubusercontent.com/SchedMD/<wbr>slurm/<wbr>5505db3a5076bfc301dba16e83fbc1<wbr>33e833cbd4/contribs/pam/README</a><wbr>.
I put the following lines in the /etc/pam.d/sshd file at the bottom:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<div>
<p class="MsoNormal">account sufficient pam_succeed_if.so user ingroup SYSOPS<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">account required pam_slurm.so<u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Unfortunately, I got a report that my users can not log into the compute nodes even when they have a job scheduled on the node. I came to find out that although I have many .so files from my .deb package all in /usr/lib/x86_64-linux-gnu/<wbr>slurm,
pam_slurm.so is not one of them... My question is, where could I acquire the proper pam_slurm.so shared lib file for U16.04, or, otherwise, how to compile it?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Thanks,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Will Dennis<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Sr. Systems Administrator,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">NEC Laboratories America<u></u><u></u></p>
</div>
</div></div></div>
</div>
</blockquote></div><br></div>