Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / doc / man-pages / pod8 / bos_removekey.pod
CommitLineData
805e021f
CE
1=head1 NAME
2
3bos_removekey - Removes a server encryption key from the KeyFile file
4
5=head1 SYNOPSIS
6
7=for html
8<div class="synopsis">
9
10B<bos removekey> S<<< B<-server> <I<machine name>> >>>
11 S<<< B<-kvno> <I<key version number>>+ >>> S<<< [B<-cell> <I<cell name>>] >>>
12 [B<-noauth>] [B<-localauth>] [B<-help>]
13
14B<bos removek> S<<< B<-s> <I<machine name>> >>> S<<< B<-k> <I<key version number>>+ >>>
15 S<<< [B<-c> <I<cell name>>] >>> [B<-n>] [B<-l>] [B<-h>]
16
17=for html
18</div>
19
20=head1 DESCRIPTION
21
22The B<bos removekey> command removes each specified encryption key from
23the F</usr/afs/etc/KeyFile> file on the machine named by the B<-server>
24argument. Use the B<-kvno> argument to identify each key by its key
25version number; use the B<bos listkeys> command to display the key version
26numbers.
27
28=head1 CAUTIONS
29
30Before removing a obsolete key, verify that the cell's maximum ticket
31lifetime has passed since the current key was defined using the B<kas
32setpassword> and B<bos addkey> commands. This ensures that no clients
33still possess tickets encrypted with the obsolete key.
34
35This command can only remove keys from the F</usr/afs/etc/KeyFile> file;
36the F</usr/afs/etc/KeyFileExt> cannot be modified by this command.
37
38=head1 OPTIONS
39
40=over 4
41
42=item B<-server> <I<machine name>>
43
44Indicates the server machine on which to change the
45F</usr/afs/etc/KeyFile> file. Identify the machine by IP address or its
46host name (either fully-qualified or abbreviated unambiguously). For
47details, see L<bos(8)>.
48
49In cells that use the Update Server to distribute the contents of the
50F</usr/afs/etc> directory, it is conventional to specify only the system
51control machine as a value for the B<-server> argument. Otherwise, repeat
52the command for each file server machine. For further discussion, see
53L<bos(8)>.
54
55=item B<-kvno> <I<key version number>>+
56
57Specifies the key version number of each key to remove.
58
59=item B<-cell> <I<cell name>>
60
61Names the cell in which to run the command. Do not combine this argument
62with the B<-localauth> flag. For more details, see L<bos(8)>.
63
64=item B<-noauth>
65
66Assigns the unprivileged identity C<anonymous> to the issuer. Do not
67combine this flag with the B<-localauth> flag. For more details, see
68L<bos(8)>.
69
70=item B<-localauth>
71
72Constructs a server ticket using a key from the local
73F</usr/afs/etc/KeyFile> or F</usr/afs/etc/KeyFileExt> file.
74The B<bos> command interpreter presents the
75ticket to the BOS Server during mutual authentication. Do not combine this
76flag with the B<-cell> or B<-noauth> options. For more details, see
77L<bos(8)>.
78
79=item B<-help>
80
81Prints the online help for this command. All other valid options are
82ignored.
83
84=back
85
86=head1 EXAMPLES
87
88The following command removes the keys with key version numbers 5 and 6
89from the F<KeyFile> file on the system control machine C<fs1.example.com>.
90
91 % bos removekey -server fs1.example.com -kvno 5 6
92
93=head1 PRIVILEGE REQUIRED
94
95The issuer must be listed in the F</usr/afs/etc/UserList> file on the
96machine named by the B<-server> argument, or must be logged onto a server
97machine as the local superuser C<root> if the B<-localauth> flag is
98included.
99
100=head1 SEE ALSO
101
102L<KeyFile(5)>,
103L<KeyFileExt(5)>,
104L<UserList(5)>,
105L<bos(8)>,
106L<bos_addkey(8)>,
107L<bos_listkeys(8)>
108
109=head1 COPYRIGHT
110
111IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
112
113This documentation is covered by the IBM Public License Version 1.0. It was
114converted from HTML to POD by software written by Chas Williams and Russ
115Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.