<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
<link rel="self" type="application/atom+xml" href="https://forum.yubico.com/feed.php?f=16&amp;t=1447" />

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2014-10-20T10:01:53+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=16&amp;t=1447</id>
<entry>
<author><name><![CDATA[minimax]]></name></author>
<updated>2014-10-20T10:01:53+01:00</updated>
<published>2014-10-20T10:01:53+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1447&amp;p=5856#p5856</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1447&amp;p=5856#p5856"/>
<title type="html"><![CDATA[Re: PAM config for sshd in RHEL 7 / CentOS 7]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1447&amp;p=5856#p5856"><![CDATA[
@Yubico: is there a solution? Can someone guide me with some hints on this issue?<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2982">minimax</a> — Mon Oct 20, 2014 10:01 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[minimax]]></name></author>
<updated>2014-09-25T11:48:40+01:00</updated>
<published>2014-09-25T11:48:40+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1447&amp;p=5585#p5585</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1447&amp;p=5585#p5585"/>
<title type="html"><![CDATA[Re: PAM config for sshd in RHEL 7 / CentOS 7]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1447&amp;p=5585#p5585"><![CDATA[
If you compile<br /><br />* ykclient-2.13<br />* libyubikey-1.12<br />* ykpers-1.15.3<br /><br />and<br /><br />* yubico-pam from Github<br /><br />then you will get the pam_yubico.so. But activating now results in<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">pam_succeed_if(sshd:auth): requirement &quot;uid &gt;= 1000&quot; not met by user &quot;root&quot;<br /></div><br />This seems due to /etc/pam.d/password-auth:<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">auth        requisite     pam_succeed_if.so uid &gt;= 1000 quiet_success</div><br /><br />But whatever you change here, I can't login using YubiKey.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2982">minimax</a> — Thu Sep 25, 2014 11:48 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[minimax]]></name></author>
<updated>2014-09-25T10:35:33+01:00</updated>
<published>2014-09-25T10:35:33+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1447&amp;p=5584#p5584</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1447&amp;p=5584#p5584"/>
<title type="html"><![CDATA[Re: PAM config for sshd in RHEL 7 / CentOS 7]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1447&amp;p=5584#p5584"><![CDATA[
Ok, I tried the same - there is no need to set a symbolic link if you provide the correct filename directly in /etc/pam.d/sshd:<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">auth sufficient /usr/lib64/libyubikey.so.0 id=16 authfile=/etc/yubikey_mappings</div><br /><br />Despite of that I get the same results:<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">PAM unable to resolve symbol: pam_sm_authenticate<br />PAM unable to resolve symbol: pam_sm_setcred</div><br /><br /> <img src="https://forum.yubico.com/images/smilies/icon_e_sad.gif" alt=":(" title="Sad" /><p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2982">minimax</a> — Thu Sep 25, 2014 10:35 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mystic1]]></name></author>
<updated>2014-09-23T22:11:53+01:00</updated>
<published>2014-09-23T22:11:53+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1447&amp;p=5573#p5573</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1447&amp;p=5573#p5573"/>
<title type="html"><![CDATA[Re: PAM config for sshd in RHEL 7 / CentOS 7]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1447&amp;p=5573#p5573"><![CDATA[
I got a little further than you did.<br /><br />I did the same bits with yum, but placed my &quot;auth sufficient libyubikey.so id=16 authfile=/etc/yubikey_mappings&quot; (note the change from &quot;required&quot; to &quot;sufficient&quot; line in /etc/pam.d/password-auth<br /><br />I then realized that CentOS 7 was looking in /usr/lib64/security for the PAM *.so files, so I went there and linked to the Yubikey library:<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">ln -s /usr/lib64/libyubikey.so.0 /usr/lib64/security/libyubikey.so</div><br />This yielded an error in /var/log/secure every time I tried to SSH in to my host:<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">Sep 23 16:03:46 netservices3 sshd&#91;3961&#93;: PAM unable to resolve symbol: pam_sm_authenticate<br />Sep 23 16:03:46 netservices3 sshd&#91;3961&#93;: PAM unable to resolve symbol: pam_sm_setcred<br /></div><p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=3002">mystic1</a> — Tue Sep 23, 2014 10:11 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[minimax]]></name></author>
<updated>2014-08-20T10:08:16+01:00</updated>
<published>2014-08-20T10:08:16+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1447&amp;p=5493#p5493</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1447&amp;p=5493#p5493"/>
<title type="html"><![CDATA[PAM config for sshd in RHEL 7 / CentOS 7]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1447&amp;p=5493#p5493"><![CDATA[
I can't get Yubikey to work with SSH on RHEL 7 / CentOS 7. I always get the error<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">debug1: PAM: initializing for &quot;root&quot;<br />PAM unable to resolve symbol: pam_sm_authenticate<br />PAM unable to resolve symbol: pam_sm_setcred<br />debug1: PAM: setting PAM_RHOST to &quot;192.168.122.1&quot;<br />debug1: PAM: setting PAM_TTY to &quot;ssh&quot;<br />debug1: userauth-request for user root service ssh-connection method password &#91;preauth&#93;<br />debug1: attempt 1 failures 0 &#91;preauth&#93;<br />password check failed for user (root)<br />pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=192.168.122.1  user$<br />pam_succeed_if(sshd:auth): requirement &quot;uid &gt;= 1000&quot; not met by user &quot;root&quot;<br />debug1: PAM: password authentication failed for root: Module is unknown<br /></div><br />This is what I did to install Yubikey on RHEL 7 / CentOS 7:<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">rpm -Uvh http://download.fedoraproject.org/pub/epel/beta/7/x86_64/epel-release-7-0.2.noarch.rpm<br />yum -y install libyubikey<br /></div><br />In /etc/pam.d/sshd:<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">#%PAM-1.0<br />auth required /usr/lib64/libyubikey.so id=16 authfile=/etc/yubikey_mappings<br />...the rest of the file<br /></div><br />In /etc/yubikey_mappings:<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">root:cccc....<br /></div><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">systemctl restart sshd.service<br /></div><br />But no luck. On RHEL 6 and CentOS 6, everything is working fine.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2982">minimax</a> — Wed Aug 20, 2014 10:08 am</p><hr />
]]></content>
</entry>
</feed>