KTUTIL(1)
β¨ KTUTIL β¨ (that's section 1 of the manual, bestie)
okay so picture this: it's giving MIT Kerberos, and this little icon is called ktutil β the Kerberos keytab file maintenance utility. yeah. the keytab wrangler. π
πΈ SYNOPSIS πΈ
ktutil
that's it. that's the whole vibe. you just run it and it opens up a whole little world. π¦
π DESCRIPTION π
so ktutil invokes a command interface β like, a whole interactive moment β from which an administrator can read, write, or edit entries in a keytab. that's the job. that's the assignment. π
heads up bestie: Kerberos V4 srvtab files are no longer supported. rip to them but they're different people now. π
π COMMANDS π
β list
list [-t] [-k] [-e]
Displays the current keylist. If -t, -k, and/or -e are specified, also display the timestamp, key contents, or enctype (respectively). like, you get the bonus info. the extra lore. π₯
Alias: l
π¦ read_kt
read_kt keytab
Read the Kerberos V5 keytab file keytab into the current keylist. it's literally just scooping up that file and putting it in the list. no cap. β¨
Alias: rkt
π write_kt
write_kt keytab
Write the current keylist into the Kerberos V5 keytab file keytab. the reverse. the remix. π«Ά
Alias: wkt
π§ clear_list
clear_list
Clear the current keylist. poof. gone. fresh start energy. π
Alias: clear
π delete_entry
delete_entry slot
Delete the entry in slot number slot from the current keylist. bye bye specific little guy. π
Alias: delent
π add_entry
add_entry {-key|-password} -p principal -k kvno [-e enctype] [-f|-s
salt]
Add principal to keylist using key or password. okay here's the tea, listen closely:
- If the
-fflag is specified, salt information will be fetched from the KDC; in this case the-eflag may be omitted, or it may be supplied to force a particular enctype. so like,-fmeans "go ask the KDC bestie" and you can still override the enctype if you want. - If the
-fflag is not specified, the-eflag must be specified, and the default salt will be used unless overridden with the-soption. so no-fmeans you gotta bring your own-e. non-negotiable fr fr.
Alias: addent
π list_requests
list_requests
Displays a listing of available commands. it's the help menu. the little map. the "wait what can i even do here" button. πΊοΈ
Aliases: lr, ?
π quit
quit
Quits ktutil. you're free. go touch grass. π±
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 alice. two enctypes. one keytab. main character behaviour honestly. πΈ
π ENVIRONMENT π
See kerberos for a description of Kerberos environment variables. the env vars live over there, iykyk. β¨
π«Ά SEE ALSO π«Ά
kadminkdb5_utilkerberos
go read those too, they're all part of the same friend group. π
π AUTHOR π
MIT
β COPYRIGHT β
1985-2026, MIT
okay that's the whole thing, you absolutely ate that π
this was the MIT Kerberos ktutil page, version 1.22.2, brought to you by MIT (copyright 1985-2026, MIT) β periodt. now go write a keytab or something, i believe in you ππ¦π
π¦ 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