<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Knox authentication with PAM in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Knox-authentication-with-PAM/m-p/385049#M245603</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/109622"&gt;@S_chinna&lt;/a&gt;&amp;nbsp; To create user follow below steps on knox host&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="il"&gt;useradd&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;lt;Username&amp;gt; (to create a&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="il"&gt;user&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# passwd &amp;lt;Username&amp;gt; (to set the password)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Set read permission on /etc/shadow&amp;nbsp; file&amp;nbsp; for knox user and try to login with the above created credentials&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Mar 2024 13:00:10 GMT</pubDate>
    <dc:creator>Scharan</dc:creator>
    <dc:date>2024-03-15T13:00:10Z</dc:date>
    <item>
      <title>Knox authentication with PAM</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-authentication-with-PAM/m-p/339556#M233108</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an issue with setting the Knox authentication with PAM. I have the default &lt;STRONG&gt;login&lt;/STRONG&gt; in &lt;STRONG&gt;/etc/pam.d/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$ cat /etc/pam.d/login
#%PAM-1.0
auth [user_unknown=ignore success=ok ignore=ignore default=bad] pam_securetty.so
auth       substack     system-auth
auth       include      postlogin
account    required     pam_nologin.so
account    include      system-auth
password   include      system-auth
# pam_selinux.so close should be the first session rule
session    required     pam_selinux.so close
session    required     pam_loginuid.so
session    optional     pam_console.so
# pam_selinux.so open should only be followed by sessions to be executed in the user context
session    required     pam_selinux.so open
session    required     pam_namespace.so
session    optional     pam_keyinit.so force revoke
session    include      system-auth
session    include      postlogin
-session   optional     pam_ck_connector.so&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Knox-sso looks as following (the default one)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sayed016_0-1648116799273.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/34001i8DE8700A319F27BD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sayed016_0-1648116799273.png" alt="Sayed016_0-1648116799273.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a user named -&amp;nbsp;&lt;STRONG&gt;test&lt;/STRONG&gt;&amp;nbsp;with a password. I tried to access the Knox Gateway UI but I get the issue.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sayed016_1-1648116170710.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/33998iB9D41A14FE53BFE0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sayed016_1-1648116170710.png" alt="Sayed016_1-1648116170710.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Knox Gateway log says:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(KnoxPamRealm.java:handleAuthFailure(170)) - Shiro unable to login: null&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: I am using CDP 7.1.6 and I can login to my host (where Knox Gateway is installed) using the &lt;STRONG&gt;test&lt;/STRONG&gt; user. Also, there's no Kerberos setup.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please share if there's something that needs to be adjusted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Sayed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 07:58:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-authentication-with-PAM/m-p/339556#M233108</guid>
      <dc:creator>Sayed016</dc:creator>
      <dc:date>2026-04-21T07:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: Knox authentication with PAM</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-authentication-with-PAM/m-p/339560#M233110</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/88786"&gt;@Sayed016&lt;/a&gt;&amp;nbsp;Can you check the permission on /etc/shadow file, make sure it has 444 permission&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 10:20:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-authentication-with-PAM/m-p/339560#M233110</guid>
      <dc:creator>Scharan</dc:creator>
      <dc:date>2022-03-24T10:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Knox authentication with PAM</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-authentication-with-PAM/m-p/339561#M233111</link>
      <description>&lt;P&gt;Yes, that resolved the issue! I had 000 as my permission. Thank you&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35149"&gt;@Scharan&lt;/a&gt;&amp;nbsp;I appreciate the quick reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 10:22:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-authentication-with-PAM/m-p/339561#M233111</guid>
      <dc:creator>Sayed016</dc:creator>
      <dc:date>2022-03-24T10:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Knox authentication with PAM</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-authentication-with-PAM/m-p/339564#M233114</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35149"&gt;@Scharan&lt;/a&gt;&amp;nbsp;Can you please give a short explanation as my customer is asking for it as to why shadow file matters in this case i.e. what's the relation with Knox with shadow file? Thank you!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 10:34:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-authentication-with-PAM/m-p/339564#M233114</guid>
      <dc:creator>Sayed016</dc:creator>
      <dc:date>2022-03-24T10:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Knox authentication with PAM</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-authentication-with-PAM/m-p/339565#M233115</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/88786"&gt;@Sayed016&lt;/a&gt;&amp;nbsp;Not only knox whatever the service may&amp;nbsp; be the Pam authentication requires Read permission on /etc/shadow file&amp;nbsp;&lt;/P&gt;&lt;P&gt;Refer to the below doc for more info&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.redhat.com/sysadmin/pluggable-authentication-modules-pam" target="_blank"&gt;https://www.redhat.com/sysadmin/pluggable-authentication-modules-pam&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 10:54:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-authentication-with-PAM/m-p/339565#M233115</guid>
      <dc:creator>Scharan</dc:creator>
      <dc:date>2022-03-24T10:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Knox authentication with PAM</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-authentication-with-PAM/m-p/339567#M233117</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35149"&gt;@Scharan&lt;/a&gt;&amp;nbsp;Thank you! This helps. I appreciate!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 11:12:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-authentication-with-PAM/m-p/339567#M233117</guid>
      <dc:creator>Sayed016</dc:creator>
      <dc:date>2022-03-24T11:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Knox authentication with PAM</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-authentication-with-PAM/m-p/351325#M236227</link>
      <description>&lt;P&gt;Resolved my error. Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 14:38:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-authentication-with-PAM/m-p/351325#M236227</guid>
      <dc:creator>naymar</dc:creator>
      <dc:date>2022-09-01T14:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: Knox authentication with PAM</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-authentication-with-PAM/m-p/385044#M245601</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Sayed,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;i Would like to know that how you have created user to access KNOX web UI&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 12:13:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-authentication-with-PAM/m-p/385044#M245601</guid>
      <dc:creator>S_chinna</dc:creator>
      <dc:date>2024-03-15T12:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Knox authentication with PAM</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Knox-authentication-with-PAM/m-p/385049#M245603</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/109622"&gt;@S_chinna&lt;/a&gt;&amp;nbsp; To create user follow below steps on knox host&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="il"&gt;useradd&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;lt;Username&amp;gt; (to create a&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="il"&gt;user&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# passwd &amp;lt;Username&amp;gt; (to set the password)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Set read permission on /etc/shadow&amp;nbsp; file&amp;nbsp; for knox user and try to login with the above created credentials&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 13:00:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Knox-authentication-with-PAM/m-p/385049#M245603</guid>
      <dc:creator>Scharan</dc:creator>
      <dc:date>2024-03-15T13:00:10Z</dc:date>
    </item>
  </channel>
</rss>

