KLIST(1)
π KLIST(1) π
okay bestie, welcome to the MIT Kerberos manual, and today's main character is klist β she's the one who tells you what tickets and keys you're actually holding. π
β¨ 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 that are chilling in a credentials cache, or the keys that are held in a keytab file. That's it, that's the whole vibe. π
β¨ OPTIONS β¨
-eβ shows you the encryption types of the session key and the ticket, for every credential in the credentials cache, or for every key in the keytab file. β¨-lβ if there's a cache collection available, this pops up a whole table summarising all the caches hanging out in that collection. ποΈ-Aβ if there's a cache collection available, this shows the contents of all the caches in the collection. not one, not some β all of them. π-cβ list the tickets held in a credentials cache. this is the default if you don't specify either-cor-k, so like, she's the main character by default. π-fβ shows the flags present in the credentials, using these abbreviations:Fβ Forwardablefβ forwardedPβ Proxiablepβ proxyDβ postDateabledβ postdatedRβ RenewableIβ Initialiβ invalidHβ Hardware authenticatedAβ preAuthenticatedTβ Transit policy checkedOβ Okay as delegateaβ anonymous
-sβ makesklistrun silently (produces no output at all, so quiet, so mysterious π€«).klistwill exit with status1if the credentials cache can't be read or is expired, and with status0otherwise.-aβ display the list of addresses in credentials. π-nβ show numeric addresses instead of reverse-resolving them. no detective work, just numbers. π’-Cβ list the configuration data that has been stored in the credentials cache whenklistencounters it. by default, configuration data is not listed. π-kβ list the keys held in a keytab file. π-iβ combined with-k, this 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. β°-Kβ display the value of the encryption key in each keytab entry in the keytab file. π-dβ display the authdata types (if any) for each entry. π-Vβ display the Kerberos version number and then exit. bye bestie π
okay so ifcache_nameorkeytab_nameisn't specified,klistwill display the credentials in the default credentials cache or keytab file, whichever is appropriate. and if theKRB5CCNAMEenvironment variable is set, its value is used to locate the default ticket cache. iykyk π
π ENVIRONMENT π
see kerberos for a description of the Kerberos environment variables. π§
π FILES π
FILE:/tmp/krb5cc_%{uid}β default location of the Kerberos 5 credentials cache πFILE:/etc/krb5.keytabβ default location for the local host's keytab file π
π SEE ALSO π
kinit, kdestroy, kerberos
π AUTHOR π
MIT
β COPYRIGHT β
1985-2026, MIT
and that's a wrap, babe π this was KLIST(1) from the MIT Kerberos manual, version 1.22.2 β stay caffeinated, stay authenticated, and go run kinit before your tickets expire, fr fr πβ¨π¦
π¦ where this page comes from
- alpine 3.24: krb5-doc 1.22.2-r1 Β· MIT
- arch rolling: krb5 1.22.2-1 Β· custom
- fedora 43: krb5-workstation 1.22.2-4.fc43 Β· Brian-Gladman-2-Clause AND BSD-2-Clause AND (BSD-2-Clause OR GPL-2.0-or-later) AND BSD-2-Clause-first-lines AND BSD-3-Clause AND BSD-4-Clause AND CMU-Mach-nodoc AND FSFULLRWD AND HPND AND HPND-export2-US AND HPND-export-US AND HPND-export-US-acknowledgement AND HPND-export-US-modify AND ISC AND MIT AND MIT-CMU AND OLDAP-2.8 AND OpenVision
- nixos 26.05: krb5 1.22.2
- nixpkgs unstable: krb5 1.22.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms