Kerberos commands usage

Enter the kadmin console


Adding Principal to a Keytab File

kadmin.local : ktadd -k /etc/krb5/anoop.keytab sherlock

Removing a principal from keytab

kadmin.local : ktremove host/

Adding principal

addprinc -randkey $primary_name/$

To list all of the entries in the etc/krb5/my_keytab key table with timestamps, type:

klist -t -k etc/krb5/my_keytab
Create the hdfs keytab file, which contains an entry for the hdfs principal.
$ kadmin
kadmin: xst -k hdfs-unmerged.keytab hdfs/

To obtain tickets using hdfs principal using the keytab:
$ kinit -k -t hdfs.keytab hdfs/


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s