<?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: Create Kerberos Principals for Each User in home in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Create-Kerberos-Principals-for-Each-User-in-home/m-p/179932#M67702</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1271/sheltong.html" nodeid="1271"&gt;@Geoffrey Shelton Okot&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Perfect Thank You.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Sep 2017 04:14:13 GMT</pubDate>
    <dc:creator>sunilreddykallu</dc:creator>
    <dc:date>2017-09-07T04:14:13Z</dc:date>
    <item>
      <title>Create Kerberos Principals for Each User in home</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Create-Kerberos-Principals-for-Each-User-in-home/m-p/179930#M67700</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Enabled kerberos as MIT KDC in my HDP and i would like to create Kerberos Principals and keytabs for each user in my home any sueggestions how to create and assign ?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2017 01:17:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Create-Kerberos-Principals-for-Each-User-in-home/m-p/179930#M67700</guid>
      <dc:creator>sunilreddykallu</dc:creator>
      <dc:date>2017-09-07T01:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: Create Kerberos Principals for Each User in home</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Create-Kerberos-Principals-for-Each-User-in-home/m-p/179931#M67701</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/28152/sunilreddykallur.html"&gt;Sam Red&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Assumption &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;KDC is running &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;KDC is created &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;KDC user and master password is available &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;REALM TEST.COM &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Edgenode :  for users&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;user is root or sudoer &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;To succeed you MUST give users access to your home directory &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Not a good solution security wise ....If these are unix users then create the keytabs in e.g /tmp and later copy them to the respective home directories and make sure to change the correct permissions on the keytabs.&lt;/P&gt;&lt;P&gt;You will notice a node dedicated to users EDGE NODE, all client softwares are installed here and not on the data or name nodes!  &lt;/P&gt;&lt;PRE&gt;# cd /tmp
# sudo kadmin.local
Authenticating as principal root/admin@TEST.COM with password.
kadmin.local:  addprinc user1@TEST.COM
WARNING: no policy specified for user1@TEST.COM; defaulting to no policy
Enter password for principal "user1@TEST.COM":
Re-enter password for principal "user1@TEST.COM":
Principal "user1@TEST.COM" created. &lt;/PRE&gt;&lt;P&gt;-----do the same for all other user too ------ &lt;/P&gt;&lt;PRE&gt;addprinc user2@TEST.COM 
addprinc user3@TEST.COM
addprinc usern@TEST.COM &lt;/PRE&gt;&lt;P&gt;The keytabs with be generated in the current directory&lt;/P&gt;&lt;PRE&gt;# generate keytab for user1
##########################################
# sudo ktutil
ktutil:  addent -password -p user1@TEST.COM -k 1 -e RC4-HMAC
Password for user1@TEST.COM:
ktutil:  wkt user1.keytab
ktutil:  q &lt;/PRE&gt;&lt;P&gt;You MUST repeat the above for all your users&lt;/P&gt;&lt;PRE&gt;# chown user1:user1 user1.keytab &lt;/PRE&gt;&lt;P&gt;Again do the above for all users and copy the keytabs from the kdc to edgenode, &lt;/P&gt;&lt;P&gt;change the ownership of the respective keytabs&lt;/P&gt;&lt;PRE&gt; # chown user1:user1 user1.keytab &lt;/PRE&gt;&lt;P&gt;Validate the principals in this example the keytabs are in /etc/security/keytabs&lt;/P&gt;&lt;PRE&gt;# klist -kt /etc/security/keytabs/user1.keytab 
Keytab name: FILE:/etc/security/keytabs/user1.keytab 
KVNO                Timestamp                   Principal 
---- ------------------- ------------------------------------------------------ 
1                  07/18/2017 10:46:27         user1@TEST.COM &lt;/PRE&gt;&lt;P&gt;Test the new user1 should try grabbing a kerberos ticket &lt;/P&gt;&lt;PRE&gt;# kinit -kt /etc/security/keytabs/user1.keytab user1@TEST.COM &lt;/PRE&gt;&lt;P&gt;The below command should show athe validity of the kerbero ticket  &lt;/P&gt;&lt;PRE&gt;# klist 
Ticket cache: FILE:/tmp/krb5cc_0 
Default principal: user1@TEST.COM 
Valid starting              Expires                         Service principal 
06/09/2017 10:53:48        06/10/2017 10:53:48              krbtgt/TEST.COM@TEST.COM&lt;/PRE&gt;&lt;P&gt;You should be okay now &lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2017 03:34:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Create-Kerberos-Principals-for-Each-User-in-home/m-p/179931#M67701</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2017-09-07T03:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: Create Kerberos Principals for Each User in home</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Create-Kerberos-Principals-for-Each-User-in-home/m-p/179932#M67702</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1271/sheltong.html" nodeid="1271"&gt;@Geoffrey Shelton Okot&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Perfect Thank You.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2017 04:14:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Create-Kerberos-Principals-for-Each-User-in-home/m-p/179932#M67702</guid>
      <dc:creator>sunilreddykallu</dc:creator>
      <dc:date>2017-09-07T04:14:13Z</dc:date>
    </item>
  </channel>
</rss>

