Listing Kerberos tickets

Use the klist utility to list all tickets in a user's ticket file.

Listing Kerberos tickets

This tip comes from Solaris 8 Essential Reference by John P. Mulligan, published by New Riders.


It is possible to list all tickets in a user's ticket file by using the klist utility. The ticket principal identity, principal names of all tickets, issue times, and expire times for all tickets are printed. The KRBTKFILE environment variable is consulted to find the ticket file. If this variable is not set, the /tmp directory is checked for a ticket file for the user.

Option Description
-file file Use the file specified by file as the user ticket file.
-s Silent. Only output the principal names of user tickets.
-srvtab Treat the ticket file like a service key file.
-t Check for a non-expired ticket-granting ticket. The exit status returns the results:
  • 1: Ticket exists.
  • 0: No ticket exists.

Click here to read more about Solaris 8 Essential Reference.

Did you like this tip? Send us an email to let us know your thoughts.


This was first published in July 2001

Dig deeper on PKI and Digital Certificates

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

SearchCloudSecurity

SearchNetworking

SearchCIO

SearchConsumerization

SearchEnterpriseDesktop

SearchCloudComputing

ComputerWeekly

Close