KSTASH(8)
β¨ KSTASH β bestie edition β¨
okay so real talk, this is kstash from section 8 of the System Manager's Manual, and it's literally the little tool that tucks your Kerberos master key away safe. it's giving "vault keeper but make it a command". π
πΈ NAME πΈ
kstash β store the KDC master password in a file
π SYNOPSIS π
kstash [-e string | --enctype=string] [-k file | --key-file=file]
[--convert-file] [--random-key] [--master-key-fd=fd]
[--random-key] [-h | --help] [--version]
(yes bestie, --random-key really is in there twice, i did not do that, i am simply reporting the facts π
)
π DESCRIPTION π
so what kstash does is read the Kerberos master key and stash it in a file β and that file is the one the KDC is gonna use. main character behaviour tbh. it's the handoff. the moment. π«Ά
here's the options, and no i'm not skipping any of them:
-estring,--enctype=string β the encryption type you wanna use. defaults toDES3-CBC-SHA1if you don't say otherwise. pick your fighter β¨-kfile,--key-file=file β the name of the master key file. that's the file it's stashing into, periodt.--convert-fileβ this one does not ask you for a new master key. instead it reads an old master key file and writes it back out in the new keyfile format. glow-up arc for your key file π--random-keyβ generates a random master key. let the universe decide π--master-key-fd=fd β a filedescriptor to read the passphrase from. if you don't specify it, the passphrase gets read from the terminal instead. so basically: fd if you want, terminal if you don't π
also chillin' in the synopsis up there are -h, --help, and --version β the page doesn't spell out what they do, so i'm not gonna make stuff up, i'm just letting you know they exist. no cap. π
heads up bestie: that --random-key appearing twice in the synopsis is straight from the original page. i'm not editing the source material, i'm just here to make it cute.
π¦ FILES π¦
/var/heimdal/m-keyis the default keyfile if you don't specify some other keyfile. it's the fallback bae. π
and here's a lil fun fact that's genuinely useful: the format of a Heimdal master key is the same as a keytab, which means you can literally use ktutil list to list the content of the file. iykyk. π
π SEE ALSO π
π SIGN-OFF π
this whole vibe check came to you from HEIMDAL, living in the System Manager's Manual, and it was dated April 10, 2007. iconic of it honestly. go stash that key, bestie, you got this π β¨π
π¦ where this page comes from
- alpine 3.22: heimdal-doc 7.8.0-r4 Β· BSD-3-Clause
- alpine 3.23: heimdal-doc 7.8.0-r5 Β· BSD-3-Clause
- alpine 3.24: heimdal-doc 7.8.0-r5 Β· BSD-3-Clause
- debian bookworm: heimdal-kdc 7.8.git20221117.28daf24+dfsg-2 Β· BSD-3-Clause
- debian trixie: heimdal-kdc 7.8.git20221117.28daf24+dfsg-9+deb13u1 Β· BSD-3-Clause
- epel 10: heimdal-server 7.8.0-26.el10_2 Β· BSD-2-Clause AND BSD-3-Clause AND HPND-export-US AND HPND-export2-US AND LicenseRef-Fedora-Public-Domain
- epel 9: heimdal-server 7.8.0-5.el9 Β· BSD and MIT
- fedora 43: heimdal-server 7.8.0-26.fc43 Β· BSD-2-Clause AND BSD-3-Clause AND HPND-export-US AND HPND-export2-US AND LicenseRef-Fedora-Public-Domain
- fedora 44: heimdal-server 7.8.0-26.fc43 Β· BSD-2-Clause AND BSD-3-Clause AND HPND-export-US AND HPND-export2-US AND LicenseRef-Fedora-Public-Domain
- fedora 44: heimdal-server 7.8.0-28.fc44 Β· BSD-2-Clause AND BSD-3-Clause AND HPND-export-US AND HPND-export2-US AND LicenseRef-Fedora-Public-Domain
- freebsd 14.5: base 14.5
- nixpkgs unstable: heimdal 7.8.0-unstable-2024-09-10
- ubuntu jammy: heimdal-kdc 7.7.0+dfsg-3ubuntu1 Β· BSD-3-Clause
- ubuntu noble: heimdal-kdc 7.8.git20221117.28daf24+dfsg-5ubuntu3 Β· BSD-3-Clause
- ubuntu questing: heimdal-kdc 7.8.git20221117.28daf24+dfsg-9ubuntu1
- ubuntu resolute: heimdal-kdc 7.8.git20221117.28daf24+dfsg-11ubuntu1 Β· BSD-3-Clause
- ubuntu stonking: heimdal-kdc 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