KTUTIL(1)
π 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
-fflag is specified, the salt info gets fetched from the KDC. in that case the-eflag can be left out β or you can still hand it over to force a particular enctype. - if the
-fflag is not specified, then the-eflag must be specified, and the default salt will be used unless you override it with the-soption.
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
Β©οΈ COPYRIGHT Β©οΈ
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
- 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