1KTUTIL(1) BSD General Commands Manual KTUTIL(1)
2
4 ktutil — manage Kerberos keytabs
5
7 ktutil [-k keytab | --keytab=keytab] [-v | --verbose] [--version]
8 [-h | --help] command [args]
9
11 ktutil is a program for managing keytabs. Supported options:
12
13 -v, --verbose
14 Verbose output.
15
16 command can be one of the following:
17
18 add [-p principal] [--principal=principal] [-V kvno] [--kvno=kvno] [-e
19 enctype] [--enctype=enctype] [-w password]
20 [--password=password] [-r] [--random] [-s] [--no-salt] [-H]
21 [--hex]
22 Adds a key to the keytab. Options that are not specified will
23 be prompted for. This requires that you know the password or
24 the hex key of the principal to add; if what you really want
25 is to add a new principal to the keytab, you should consider
26 the get command, which talks to the kadmin server.
27
28 change [-r realm] [--realm=realm] [--a host] [--admin-server=host] [--s
29 port] [--server-port=port]
30 Update one or several keys to new versions. By default, use
31 the admin server for the realm of a keytab entry. Otherwise
32 it will use the values specified by the options.
33
34 If no principals are given, all the ones in the keytab are
35 updated.
36
37 copy keytab-src keytab-dest
38 Copies all the entries from keytab-src to keytab-dest.
39
40 get [-p admin principal] [--principal=admin principal] [-e enctype]
41 [--enctypes=enctype] [-r realm] [--realm=realm] [-a admin
42 server] [--admin-server=admin server] [-s server port]
43 [--server-port=server port] principal ...
44 For each principal, generate a new key for it (creating it if
45 it doesn't already exist), and put that key in the keytab.
46
47 If no realm is specified, the realm to operate on is taken
48 from the first principal.
49
50 list [--keys] [--timestamp]
51 List the keys stored in the keytab.
52
53 remove [-p principal] [--principal=principal] [-V -kvno] [--kvno=kvno]
54 [-e -enctype] [--enctype=enctype]
55 Removes the specified key or keys. Not specifying a kvno
56 removes keys with any version number. Not specifying an
57 enctype removes keys of any type.
58
59 rename from-principal to-principal
60 Renames all entries in the keytab that match the
61 from-principal to to-principal.
62
63 purge [--age=age]
64 Removes all old versions of a key for which there is a newer
65 version that is at least age (default one week) old.
66
68 kadmin(1)
69
70HEIMDAL April 14, 2005 HEIMDAL