BOS_UTIL(8)
π BOS_UTIL β bestie edition π
okay so boom: bos_util is the little command that messes with the AFS server KeyFile. That's the whole vibe. Let's get into it π«Ά
β¨ NAME β¨
bos_util β manipulate the AFS server KeyFile π
πΈ SYNOPSIS πΈ
bos_util add <kvno>
bos_util adddes <kvno>
bos_util delete <kvno>
bos_util list
π¦ DESCRIPTION π¦
okay so the bos_util command manipulates the AFS server KeyFile, periodt. It can grab a password off standard input, turn that password into a key, and drop it into the KeyFile; it can list the keys chillin' in the KeyFile; or it can yeet a key out of the KeyFile. Functionally it's very similar to asetkey, but here's the difference bestie: asetkey works with keytab files, while bos_util works with passwords directly. iykyk π
bos_util expects one of these subcommands:
add <kvno>β adds a key with key version <kvno> to the KeyFile, using a password from standard input. This one uses the normal AFS password salt algorithm to generate the key (equivalent to thedes-cbc-crc:afs3enctype in Kerberos v5). Basically it's the same thing asbos addkey. slay β¨adddes <kvno>β adds a key with key version <kvno> to the KeyFile, also taking a password from standard input. But this one does not salt the password when generating the key (equivalent to thedes-cbc-crc:v4enctype in Kerberos v5). Since this command applies no salt to the password, it can be used as a last resort for generating a DES key with a salt algorithm that other utilities don't know how to use β you do that by handing this command the pre-salted password. This can be useful when, for example, you're using Microsoft Active Directory as the Kerberos KDC, since Active Directory uses a different salt algorithm for service principals than most Unix Kerberos implementations do. That said, the best approach is to find a way to generate a keytab and then useasetkey. no cap.delete <kvno>β deletes the key with the specified key version from the KeyFile. This command is equivalent toasetkey deleteorbos removekey.listβ lists the keys in the KeyFile. This command is equivalent toasetkey listorbos listkeys. iconic π
β οΈ one thing to note: the bos_util command does not use the normal AFS option parsing library, and its subcommands cannot be abbreviated. so don't try to be cute with shortcuts π
π CAUTIONS π
okay bestie, deep breath, this part matters:
bos_utilis intended for use with a Kerberos v4 environment, and therefore is mostly obsolete. Normally, instead of using this command, you'll want to usektutilto create a keytab (maybe with itsadd_entrycommand) and then useasetkeyas normal.bos_utilonly supports the AFS password salt algorithm and no password salt algorithm, and therefore may not produce the same key from a given password as Kerberos v5 utilities unless you're careful to use that same salt algorithm when creating the key in the KDC. π- Creating an AFS key with a known password and then using
bos_utilorbos addkeyto add that key to the KeyFile is not recommended. Human-created passwords are usually not as strong as a random key generated using a good entropy source β like with the-randkeyoption to the MIT Kerberos v5kadminktaddcommand, or the equivalent in other Kerberos v5 implementations. The security of AFS depends on the strength of the AFS service key, so it should therefore be as random as possible. π₯ - It is imperative that the key version number (kvno) you give matches the kvno on the Kerberos server. If it doesn't, users won't be able to authenticate. Also the key generated by
bos_utilmust match the internal representation on the Kerberos server, including the salt. literally no wiggle room here π
π OPTIONS π
bos_util takes no options. that's it. that's the section. she's low maintenance π
π PRIVILEGE REQUIRED π
The issuer must be logged onto a file server machine as the local superuser root. main character energy only π«Ά
β SEE ALSO β
asetkey(8), bos_addkey(8), bos_listkeys(8), bos_removekey(8), kadmin(8), ktutil(8)
π COPYRIGHT π
Copyright 2007 Jason Edgecombe <jason@rampaginggeek.com>
This documentation is covered by the BSD License as written in the doc/LICENSE file. This man page was written by Jason Edgecombe for OpenAFS.
and that's the whole thing bestie, we ate πβ¨ this was OpenAFS, dated 2026-07-27 β go forth and be careful with your kvnos fr fr π
π¦ where this page comes from
- ubuntu stonking: openafs-fileserver 1.8.16.1-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms