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 the kadmin protocol 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 -i flag is given, k5srvutil will prompt for confirmation before changing each key. if the -k option 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 -e option. old keys are retained in the keytab so that existing tickets keep working, but you should use delold after 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 a change operation to remove the old keys, once the existing tickets issued for the service have expired. if the -i flag is given, k5srvutil will 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


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