KTUTIL(1)

πŸ“¦
version 1.22.1 Β· 3 versions
, in ubuntu resolute, ubuntu stonking

πŸ’… KTUTIL(1) β€” the manual page, but make it a group chat

okay bestie, so you know how you're the certified keeper of all the secrets in a Kerberos realm? yeah. this is the tool for that. it's from MIT Kerberos, and the whole page is about keeping your keytab entries cute, correct, and not a mess. πŸŽ€


✨ SYNOPSIS ✨

ktutil

that's it. that's the whole vibe. you just run it and you're in. πŸ¦‹


🌸 DESCRIPTION 🌸

so the ktutil command literally opens up a command interface for you, and from inside that interface an administrator (that's you, queen πŸ‘‘) can read, write, or edit entries in a keytab. that's the whole job.

πŸ’€ important heads-up: Kerberos V4 srvtab files are no longer supported. not a thing anymore. do not come for them. they're gone.

🌈 COMMANDS 🌈

πŸ“‹ list

list [-t] [-k] [-e]

shows you the current keylist. and if you pass -t, -k, and/or -e, it also shows you the timestamp, the key contents, or the enctype β€” respectively, in that order, matching those flags. ✨

Alias: l


πŸ“– read_kt

read_kt keytab

reads the Kerberos V5 keytab file keytab into the current keylist. boom, it's in there now. 🫢

Alias: rkt


✍️ write_kt

write_kt keytab

writes the current keylist into the Kerberos V5 keytab file keytab. take what's in your list, put it in the file. slay.

Alias: wkt


🧹 clear_list

clear_list

clears the current keylist. empty. blank. a fresh start. 🌸

Alias: clear


βœ‚οΈ delete_entry

delete_entry slot

deletes the entry sitting in slot number slot from the current keylist. bye bestie πŸ‘‹

Alias: delent


βž• add_entry

add_entry {-key|-password} -p principal -k kvno [-e enctype] [-f|-s
salt]

adds principal to the keylist using either a key or a password. here's the tea:

  • if the -f flag is specified, the salt info gets fetched from the KDC. in that case the -e flag can be left out β€” or you can still hand it over to force a particular enctype.
  • if the -f flag is not specified, then the -e flag must be specified, and the default salt will be used unless you override it with the -s option.

Alias: addent


πŸ—’οΈ list_requests

list_requests

displays a listing of all the available commands. like a menu, but make it ✨aesthetic✨.

Aliases: lr, ?


πŸšͺ quit

quit

quits ktutil. and honestly? self care. 🧚

Aliases: exit, q


πŸ’– EXAMPLE πŸ’–

ktutil:  add_entry -password -p alice@BLEEP.COM -k 1 -e
    aes128-cts-hmac-sha1-96
Password for alice@BLEEP.COM:
ktutil:  add_entry -password -p alice@BLEEP.COM -k 1 -e
    aes256-cts-hmac-sha1-96
Password for alice@BLEEP.COM:
ktutil:  write_kt alice.keytab
ktutil:

look at her go. two enctypes, two passwords, one write_kt, and we're out. πŸ’…


🌟 ENVIRONMENT 🌟

see kerberos for a description of Kerberos environment variables. (yes, that's where the env var lore lives, not here. iykyk.)


πŸ‘€ SEE ALSO πŸ‘€

kadmin, kdb5_util, kerberos


🫢 AUTHOR 🫢

MIT


1985-2025, MIT


okay that's the whole page, bestie. and before you go β€” this masterpiece is version 1.22.1, from the MIT Kerberos squad, and it's been holding it down since way back. go forth and manage those keytabs, you absolute icon. πŸ‘‘βœ¨πŸ’–

πŸ“¦ where this page comes from