KDESTROY(1)
π
KDESTROY β bestie edition (from the MIT Kerberos manual, kdestroy(1)) β¨
β¨ NAME β¨
okay so kdestroy β it destroys your Kerberos tickets. that's the whole job. it's the "okay bye i'm logging off" button for your auth π
πΈ SYNOPSIS πΈ
kdestroy [-A] [-q] [-c cache_name] [-p princ_name]
π¦ DESCRIPTION π¦
so the kdestroy utility destroys the user's active Kerberos authorization tickets β and the way it does that is by overwriting and deleting the credentials cache that contains them. like, not just ghosting the tickets, actually scribbling over them and then yeeting the cache. iconique, honestly π
if the credentials cache isn't specified, then the default credentials cache is the one that gets destroyed. no cache left behind, periodt.
π OPTIONS π
-Aβ destroys all caches in the collection, if a cache collection is actually available. you can pair it with-cto say exactly which collection should get destroyed. it's giving "spring cleaning but for every cache you own" π§Ήβ¨-qβ run quietly. normallykdestroywill beep at you if it fails to destroy the user's tickets (rude of it, tbh π). the-qflag suppresses this behavior. so it goes full stealth mode, no noise.-ccache_name β use cache_name as the credentials (ticket) cache name and location. if you don't use this option, the default cache name and location get used instead.
just so you know β the default credentials cache may vary between systems. and if the KRB5CCNAME environment variable is set, then its value is what's used to name the default ticket cache. so like, check your env before you assume anything, bestie π
-pprinc_name β if a cache collection is available, destroy the cache for princ_name instead of the primary cache. can be used with the-coption to specify which collection gets searched. very "i'm not mad at the whole collection, i'm mad at this one" energy π
π NOTE π
most installations recommend that you place thekdestroycommand in your.logoutfile, so that your tickets are destroyed automatically when you log out. basically: set it and forget it, and your tickets clean themselves up on the way out. self-care π«Ά
π ENVIRONMENT π
see kerberos for a description of Kerberos environment variables. that's where the lore lives π
β FILES β
FILE:/tmp/krb5cc_%{uid}β default location of Kerberos 5 credentials cache
π SEE ALSO π
kinit, klist, kerberos
π AUTHOR π
MIT
πΈ COPYRIGHT πΈ
1985-2025, MIT
and that's the whole page, bestie! this one came from MIT Kerberos, version 1.22.1 β go forth, destroy those tickets, and log off like the main character you are πβ¨ππ¦
π¦ 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