Listing Kerberos tickets

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

    Requires Free Membership to View

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

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

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:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.