Sun Enterprise Authentication Mechanism Guide

How to Display the Keylist (Principals) in a Keytab

  1. Become superuser on the host with the keytab.


    Note -

    Although you can create keytabs owned by other users, the default location for the keytab requires root ownership.


  2. Start the ktutil command.


    # /usr/krb5/bin/ktutil
    
  3. Read the keytab into the keylist buffer by using the read_kt command.


    ktutil: read_kt keytab
    
  4. Display the keylist buffer by using the list command.


    ktutil: list
    

    The current keylist buffer is displayed.

  5. Quit the ktutil command.


    ktutil: quit
    

Example--Displaying the Keylist (Principals) in a Keytab

The following example displays the keylist in the /etc/krb5/krb5.keytab file on the denver host.


denver # /usr/krb5/bin/ktutil
    ktutil: read_kt /etc/krb5/krb5.keytab
    ktutil: list
slot KVNO Principal
---- ---- ---------------------------------------
   1    5 host/denver@ACME.COM
    ktutil: quit