K5SRVUTIL(1)
πΈ K5SRVUTIL π
okay bestie, so k5srvutil is your go-to for messing with a host key table β aka a keytab. that's the whole vibe. it's the MIT Kerberos keytab-manipulation utility and she is iconic π
β¨ SYNOPSIS β¨
k5srvutil operation [-i] [-f filename] [-e keysalts]
like, you give her an operation and maybe some flags and she goes off π¦
π DESCRIPTION π
k5srvutil lets an administrator do three-ish things to a keytab: list the keys that are currently chillin' in it, get new keys for a principal that's already in it, or delete the non-current keys out of it. no cap.
operation has to be one of these, fr fr:
listβ shows you the keys in a keytab, with the version number and principal name. it's giving inventory. πchangeβ uses thekadminprotocol to update the keys in the Kerberos database to new randomly-generated ones, and then updates the keys in the keytab so they match. β¨ here's the tea though: if a key's version number doesn't match the version number stored in the Kerberos server's database, the operation will fail π. if the-iflag is given,k5srvutilwill prompt for confirmation before changing each key. if the-koption is given, the old and new keys will be displayed. ordinarily, keys get generated with the default encryption types and key salts β but you can override that with the-eoption. old keys are retained in the keytab so that existing tickets keep working, but you should usedeloldafter such tickets expire, to prevent attacks against the old keys. π‘οΈdeloldβ deletes keys that aren't the most recent version from the keytab. you should run this some time after achangeoperation to remove the old keys, once the existing tickets issued for the service have expired. if the-iflag is given,k5srvutilwill prompt for confirmation for each principal. π§Ήdeleteβ deletes particular keys in the keytab, interactively prompting for each key. very hands-on, very choose-your-own-adventure. π
in all cases, the default keytab is used unless you override it with the -f option. periodt.
and ngl, k5srvutil uses the kadmin program to edit the keytab in place. so that's the collab we're working with. π€
π ENVIRONMENT π
see kerberos for a description of Kerberos environment variables. that's where the lore lives, iykyk. π
π SEE ALSO π
kadmin, ktutil, kerberos
π AUTHOR π
MIT
π COPYRIGHT π
1985-2026, MIT
and that's the whole page bestie π«Ά this was the MIT Kerberos manual for k5srvutil, version 1.22.2 β go forth and protect your keytab, she deserves it βπΈπ
π¦ 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
- freebsd 15.1: base 15.1
- 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