Support Questions

Find answers, ask questions, and share your expertise

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 myusername@FEDORAPROJECT.ORG -k 42 -f
Password for myusername@FEDORAPROJECT.ORG:
ktutil:  wkt /tmp/kt/fedora.keytab
ktutil:  q

Then
kinit -kt /tmp/kt/fedora.keytab myusername@FEDORAPROJECT.ORG

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

Regards,

Chethan YM