KTUTIL(1)
β¨ KTUTIL(1) β the manual page, but make it cute β¨
okay bestie, sit down, hydrate, and let's talk about ktutil from the General Commands Manual β it's a whole program for managing Kerberos keytabs and honestly? she's iconic. π
πΈ NAME πΈ
ktutil β manage Kerberos keytabs. that's it, that's the vibe. π
π SYNOPSIS π
[-h | --help] command [args]
no cap, that's the whole shape of it β you pick your keytab, maybe get a lil chatty, maybe just wanna know the version or get some help, and then you tell her which command to run plus any args she needs. π
π¦ DESCRIPTION π¦
okay so ktutil is literally a program for managing keytabs. that's her whole job and she does it beautifully. β¨
here are the options that apply to the program itself, the main-character ones:
-v,--verboseβ verbose output. she'll tell you everything, and you're gonna listen. π£οΈ
and then command can be one of the following β pick your fighter:
π add π
enctype] [--enctype=enctype] [-w password]
[--password=password] [-r] [--random] [-s] [--no-salt] [-H]
[--hex]
-p principal,--principal=principalβ which principal we're adding a key for-V kvno,--kvno=kvnoβ the key version number-e enctype,--enctype=enctypeβ the encryption type-w password,--password=passwordβ the password-r,--randomβ random key energy π-s,--no-saltβ no salt, we're going plain-H,--hexβ hex key input
what it does: adds a key to the keytab. any options you don't specify? she's gonna prompt you for them, bestie, so be ready. π«Ά
β οΈ heads up fr fr: this one requires that you already know the password or the hex key of the principal you're adding. it's giving "you must already have the tea." π΅
and if what you actually want is to add a brand new principal to the keytab? then you should lowkey consider the get command instead β she talks to the kadmin server and handles all of that for you. π
π change π
port] [--server-port=port]
-r realm,--realm=realmβ the realm--a host,--admin-server=hostβ the admin server host--s port,--server-port=portβ the server port
what it does: updates one or several keys to new versions. by default she uses the admin server for the realm of a keytab entry. otherwise, she'll use the values you specified with the options. no guessing, just vibes. β¨
and if you give her no principals? she updates all the ones in the keytab. she's thorough like that. π
π§ copy π§
what it does: copies all the entries from keytab-src to keytab-dest. simple. clean. ate. π
β get β
[--enctypes=enctype] [-r realm] [--realm=realm] [-a admin
server] [--admin-server=admin server] [-s server port]
[--server-port=server port] principal ...
-p admin principal,--principal=admin principalβ the admin principal-e enctype,--enctypes=enctypeβ the enctypes-r realm,--realm=realmβ the realm-a admin server,--admin-server=admin serverβ the admin server-s server port,--server-port=server portβ the server portprincipal ...β one or more principals, give her the whole list bestie
what it does: for each principal, she generates a new key for it (creating it if it doesn't already exist π), and puts that key in the keytab. main character energy tbh.
and if no realm is specified, the realm she operates on is taken from the first principal. iykyk. π
π list π
--keysβ show the keys--timestampβ show the timestamps
what it does: lists the keys stored in the keytab. she's showing off, and honestly? she earned it. π
π remove π
[-e -enctype] [--enctype=enctype]
-p principal,--principal=principalβ the principal-V -kvno,--kvno=kvnoβ the key version number-e -enctype,--enctype=enctypeβ the encryption type
what it does: removes the specified key or keys. and listen, the defaults here are chaotic in the best way: not specifying a kvno removes keys with any version number, and not specifying an enctype removes keys of any type. she's not holding back. π
π rename π
what it does: renames all entries in the keytab that match the from-principal to to-principal. glow-up complete. β¨
π«Ά purge π«Ά
--age=ageβ how old is "old", bestie
what it does: removes all old versions of a key for which there is a newer version that is at least age old. the default for age is one week. she's cleaning house and she's not sorry. π§Ή
π SEE ALSO π
π and that's the whole page!! this one came from HEIMDAL, dated April 14, 2005 β vintage but still serving. now go manage those keytabs, bestie. you've got this. πβ¨ππ¦πΈπ π«Ά
π¦ where this page comes from
- debian bookworm: heimdal-clients 7.8.git20221117.28daf24+dfsg-2 Β· BSD-3-Clause
- debian trixie: heimdal-clients 7.8.git20221117.28daf24+dfsg-9+deb13u1 Β· BSD-3-Clause
- ubuntu jammy: heimdal-clients 7.7.0+dfsg-3ubuntu1 Β· BSD-3-Clause
- ubuntu noble: heimdal-clients 7.8.git20221117.28daf24+dfsg-5ubuntu3 Β· BSD-3-Clause
- ubuntu questing: heimdal-clients 7.8.git20221117.28daf24+dfsg-9ubuntu1
- ubuntu resolute: heimdal-clients 7.8.git20221117.28daf24+dfsg-11ubuntu1 Β· BSD-3-Clause
- ubuntu stonking: heimdal-clients 7.8.git20240113.1b4565a+dfsg-2ubuntu1 Β· BSD-3-Clause
- Copyright (c) 1997-2004 Kungliga Tekniska HΓΆgskolan
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms