KLIST(1)
π klist(1) β list cached Kerberos tickets π
okay bestie, so this is a MIT Kerberos manual page, and it's genuinely one of the more iconic ones. sit down, grab a strawberry π, and let's get into it.
β¨ NAME β¨
klist β list cached Kerberos tickets
π¦ SYNOPSIS π¦
klist [-e] [[-c] [-l] [-A] [-f] [-s] [-a [-n]]] [-C] [-k [-i] [-t] [-K]]
[-V] [-d] [cache_name|keytab_name]
π DESCRIPTION π
so basically klist lists the Kerberos principal and the Kerberos tickets held in a credentials cache, OR the keys held in a keytab file. that's it. that's the whole vibe. it's the "who am I and what do I have" command of the Kerberos world, no cap. π₯
πΈ OPTIONS πΈ
-eβ shows the encryption types of the session key and the ticket for each credential in the credential cache, or each key in the keytab file. like, what kind of crypto are we dealing with here π-lβ if a cache collection is available, it displays a table summarizing the caches present in the collection. a little menu of your caches, slay.-Aβ if a cache collection is available, it displays the contents of all of the caches in the collection. all of them. the whole collection. main character energy β¨-cβ list tickets held in a credentials cache. this is the default if neither-cnor-kis specified, so if you're not sure what you want, this is what you're getting π-fβ shows the flags present in the credentials, using these abbreviations:
F Forwardable
f forwarded
P Proxiable
p proxy
D postDateable
d postdated
R Renewable
I Initial
i invalid
H Hardware authenticated
A preAuthenticated
T Transit policy checked
O Okay as delegate
a anonymous
yes, the capital/lowercase thing matters. F and f are literally two different flags. lowercase is giving "the vibe is off" energy π
-sβ makesklistrun silently (produce no output). it will exit with status1if the credentials cache cannot be read or is expired, and with status0otherwise. perfect for scripts who just want a yes/no, no drama π-aβ display the list of addresses in credentials.-nβ show numeric addresses instead of reverse-resolving addresses. no DNS side quests, just the raw numbers π’-Cβ list configuration data that has been stored in the credentials cache whenklistencounters it. by default, configuration data is not listed, so this is the "oh, there was more in there?" option π-kβ list keys held in a keytab file. switching gears from tickets to keys, we contain multitudes π§-iβ in combination with-k, defaults to using the default client keytab instead of the default acceptor keytab, if no name is given.-tβ display the time entry timestamps for each keytab entry in the keytab file. timestamps, we love a timestamp β-Kβ display the value of the encryption key in each keytab entry in the keytab file.
bestie. this prints actual key material. it's literally in the manual so I'm telling you: be careful who's shoulder-surfing when you run this. π
-dβ display the authdata types (if any) for each entry.-Vβ display the Kerberos version number and exit. short, sweet, iconic π
if cache_name or keytab_name is not specified, klist will display the credentials in the default credentials cache or keytab file as appropriate. and if the KRB5CCNAME environment variable is set, its value is used to locate the default ticket cache. so yeah, env vars can absolutely change which cache you're looking at. iykyk π
π ENVIRONMENT π
see kerberos for a description of Kerberos environment variables. that's it, that's the section, it's a pointer and honestly? valid.
π FILES π
FILE:/tmp/krb5cc_%{uid}β default location of Kerberos 5 credentials cacheFILE:/etc/krb5.keytabβ default location for the local host's keytab file
π«Ά SEE ALSO π«Ά
kinit, kdestroy, kerberos
(the holy trinity of "get a ticket, lose a ticket, read the lore")
π AUTHOR π
MIT
β COPYRIGHT β
1985-2025, MIT
okay that's the whole page, you ate that πβ¨ this was klist(1) from MIT Kerberos, version 1.22.1 β go forth and list your tickets, bestie π π
π¦ where this page comes from
- ubuntu resolute: krb5-user 1.22.1-2ubuntu4
- ubuntu resolute: krb5-user 1.22.1-2ubuntu4.1
- ubuntu stonking: krb5-user 1.22.1-3ubuntu2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms