Managing Kerberos and Other Authentication Services in Oracle® Solaris 11.2

Exit Print View

Updated: August 2014
 
 

Displaying the Principals in a Keytab File

On the host with the keytab file, run the ktutil command, read the keytab, then list the principals. Principals are also known as the keylist.


Note -  Although you can create keytab files that are owned by other users, using the default location for the keytab file requires root ownership.
Example 5-17  Displaying the Keylist (Principals) in a Keytab File

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

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