BOS_REMOVEKEY(8)
π BOS_REMOVEKEY(8) β AFS Command Reference π
okay bestie, so this is bos_removekey from the AFS command reference, and it's giving "be careful with this one" energy fr fr. Let's get into it.
β¨ NAME β¨
bos_removekey β removes a server encryption key from the KeyFile file ποΈ
πΈ SYNOPSIS πΈ
bos removekey -server <machine name>
-kvno <key version number>+ [-cell <cell name>]
[-noauth] [-localauth] [-help]
bos removek -s <machine name> -k <key version number>+
[-c <cell name>] [-n] [-l] [-h]
π DESCRIPTION π
So the bos removekey command literally removes each encryption key you specify from the /etc/openafs/server/KeyFile file, and it does it on the machine you name with the -server argument. π«Ά
You use the -kvno argument to identify each key by its key version number. And if you don't already know the key version numbers? Use the bos listkeys command to display them. she's not gonna guess for you π
π¨ CAUTIONS π¨
Before you go removing an obsolete key, bestie, pleeease verify that the cell's maximum ticket lifetime has passed since the current key was defined β you do that using the kas setpassword and bos addkey commands. This is what ensures that no clients still possess tickets encrypted with the obsolete key. it's giving "don't skip this step" energy, no cap.
Also lowkey important: this command can only remove keys from the /etc/openafs/server/KeyFile file. The /etc/openafs/server/KeyFileExt cannot be modified by this command. periodt.
β οΈ Do not skip the ticket-lifetime check. Not dramatic, just true.
π OPTIONS π
-server <machine name>β Indicates the server machine on which to change the/etc/openafs/server/KeyFilefile. Identify the machine by IP address or its host name (either fully-qualified or abbreviated unambiguously). For details, seebos(8).
In cells that use the Update Server to distribute the contents of the /etc/openafs/server directory, it's conventional to specify only the system control machine as a value for the -server argument. Otherwise, repeat the command for each file server machine. For further discussion, see bos(8). β¨
-kvno <key version number>+β Specifies the key version number of each key to remove. ποΈ-cell <cell name>β Names the cell in which to run the command. Do not combine this argument with the-localauthflag. For more details, seebos(8).-noauthβ Assigns the unprivileged identity"anonymous"to the issuer. Do not combine this flag with the-localauthflag. For more details, seebos(8).-localauthβ Constructs a server ticket using a key from the local/etc/openafs/server/KeyFileor/etc/openafs/server/KeyFileExtfile. Theboscommand interpreter presents the ticket to the BOS Server during mutual authentication. Do not combine this flag with the-cellor-noauthoptions. For more details, seebos(8).-helpβ Prints the online help for this command. All other valid options are ignored. π
π EXAMPLES π
The following command removes the keys with key version numbers 5 and 6 from the KeyFile file on the system control machine "fs1.example.com". π¦
% bos removekey -server fs1.example.com -kvno 5 6
π₯ PRIVILEGE REQUIRED π₯
The issuer must be listed in the /etc/openafs/server/UserList file on the machine named by the -server argument β or must be logged onto a server machine as the local superuser "root" if the -localauth flag is included. main character credentials only, sorry π
π SEE ALSO π
KeyFile(5), KeyFileExt(5), UserList(5), bos(8), bos_addkey(8), bos_listkeys(8)
π COPYRIGHT π
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.
okay that's the whole thing, you ate that π«Ά this was the OpenAFS page dated 2026-07-27, so go forth and remove those keys responsibly, bestie πβ¨π
π¦ where this page comes from
- ubuntu stonking: openafs-client 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