<?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: In Kerberos setting, in a HDP, how to confirm which user Principal is authenticated for the service keytab when running kinit command? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/In-Kerberos-setting-in-a-HDP-how-to-confirm-which-user/m-p/229879#M69830</link>
    <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/45324/nhgodwal.html"&gt;Neha G&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In a kerberized cluster there are 2 types of keytabs or principals headless and service principals. &lt;/P&gt;&lt;P&gt;Headless principals are not bound to a specific host or node and are presented like &lt;STRONG&gt;@ SRV.COM&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;Service principals are bound to a specific service and host or node, and are presented like with syntax:&lt;STRONG&gt; /@ SRV.COM &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;So when you initialize the &lt;STRONG&gt;hdfs.headless.keytab&lt;/STRONG&gt; is as &lt;STRONG&gt;DoAs&lt;/STRONG&gt; so the user will take &lt;STRONG&gt;hdfs&lt;/STRONG&gt; permissions&lt;/P&gt;</description>
    <pubDate>Tue, 17 Oct 2017 23:54:35 GMT</pubDate>
    <dc:creator>Shelton</dc:creator>
    <dc:date>2017-10-17T23:54:35Z</dc:date>
    <item>
      <title>In Kerberos setting, in a HDP, how to confirm which user Principal is authenticated for the service keytab when running kinit command?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/In-Kerberos-setting-in-a-HDP-how-to-confirm-which-user/m-p/229876#M69827</link>
      <description>&lt;P&gt;I am running below command on ubuntu node where my single node hadoop cluster(kerberized) with existing Active Directory:&lt;/P&gt;&lt;PRE&gt;root@host1:~# kinit -kt /etc/security/keytabs/hdfs.headless.keytab hdfs-testcluster@SRV.COM&lt;/PRE&gt;&lt;P&gt;Where, hadoop_cluster_name = testcluster, Realm=SRV.COM&lt;/P&gt;&lt;P&gt;I am trying to access hdfs with hdfs service-principal name. But I am not sure in this command what is the user-principal who is requesting this service. Is it the "kadmin Principal" which I set during configuration setting of Kerberos?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 12:24:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/In-Kerberos-setting-in-a-HDP-how-to-confirm-which-user/m-p/229876#M69827</guid>
      <dc:creator>nhgodwal</dc:creator>
      <dc:date>2022-09-16T12:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: In Kerberos setting, in a HDP, how to confirm which user Principal is authenticated for the service keytab when running kinit command?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/In-Kerberos-setting-in-a-HDP-how-to-confirm-which-user/m-p/229877#M69828</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/45324/nhgodwal.html" nodeid="45324"&gt;@Neha G&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Your question is unclear, however in the kinit line you posted, the principal is hdfs-testcluster@SRV.COM.  This is typically the "root" user for HDFS and is generally translated to the local user with the username "hfds" using the configured auth-to-local rule set. Using this principal, you should have full access to manage HDFS. &lt;/P&gt;&lt;P&gt;To see the current Kerberos ticket cache for the active user, you can issue the command&lt;/P&gt;&lt;PRE&gt;klist&lt;/PRE&gt;&lt;P&gt;This will show you what identity is being used as the authenticated user, if a user was authenticated.  &lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 23:42:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/In-Kerberos-setting-in-a-HDP-how-to-confirm-which-user/m-p/229877#M69828</guid>
      <dc:creator>rlevas</dc:creator>
      <dc:date>2017-10-17T23:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: In Kerberos setting, in a HDP, how to confirm which user Principal is authenticated for the service keytab when running kinit command?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/In-Kerberos-setting-in-a-HDP-how-to-confirm-which-user/m-p/229878#M69829</link>
      <description>&lt;P&gt;
	here hdfs-testcluster@SRV.COM is your user principal. Following command will tell you the encryption type and user principle in this keytab.&lt;/P&gt;&lt;PRE&gt;# klist -kte /etc/security/keytabs/hdfs.headless.keytab
Keytab name: FILE:/etc/security/keytabs/hdfs.headless.keytab
KVNO Timestamp         Principal
---- ----------------- --------------------------------------------------------
# ##### hdfs-testcluster@SRV.COM (####)
# ##### hdfs-testcluster@SRV.COM (####)
&lt;/PRE&gt;&lt;P&gt;
	when you run hdfs command, this gets translated to hdfs user by following property: hadoop.security.auth_to_local and rule: RULE:[1:$1@$0](hdfs-testcluster@SRV.COM)s/.*/hdfs/&lt;/P&gt;&lt;P&gt;
	&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 23:49:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/In-Kerberos-setting-in-a-HDP-how-to-confirm-which-user/m-p/229878#M69829</guid>
      <dc:creator>smayani</dc:creator>
      <dc:date>2017-10-17T23:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: In Kerberos setting, in a HDP, how to confirm which user Principal is authenticated for the service keytab when running kinit command?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/In-Kerberos-setting-in-a-HDP-how-to-confirm-which-user/m-p/229879#M69830</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/45324/nhgodwal.html"&gt;Neha G&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In a kerberized cluster there are 2 types of keytabs or principals headless and service principals. &lt;/P&gt;&lt;P&gt;Headless principals are not bound to a specific host or node and are presented like &lt;STRONG&gt;@ SRV.COM&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;Service principals are bound to a specific service and host or node, and are presented like with syntax:&lt;STRONG&gt; /@ SRV.COM &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;So when you initialize the &lt;STRONG&gt;hdfs.headless.keytab&lt;/STRONG&gt; is as &lt;STRONG&gt;DoAs&lt;/STRONG&gt; so the user will take &lt;STRONG&gt;hdfs&lt;/STRONG&gt; permissions&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 23:54:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/In-Kerberos-setting-in-a-HDP-how-to-confirm-which-user/m-p/229879#M69830</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2017-10-17T23:54:35Z</dc:date>
    </item>
  </channel>
</rss>

