Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Support Questions

Find answers, ask questions, and share your expertise
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!

How to make krb5.keytab

avatar
Rising Star

Everyone, can help me

How to create keytab krb5.keytab in kerberos ?

when I list keytab use " klist -k" show error like below

root@master1:~# klist -k
Keytab name: FILE:/etc/krb5.keytab
klist: Key table file '/etc/krb5.keytab' not found while starting keytab scan

 

1 REPLY 1

avatar
Master Collaborator

Hi @rizalt 

The error is because you have not provided keytab path here the command should look like below:

> klist -k example.keytab

To create the keytab you can refer any of below steps:

$ ktutil
ktutil:  addent -password -p [email protected] -k 42 -f
Password for [email protected]:
ktutil:  wkt /tmp/kt/fedora.keytab
ktutil:  q

Then
kinit -kt /tmp/kt/fedora.keytab [email protected]

Note: Replace the username and REALM as per your cluster configurations.

Regards,

Chethan YM