summaryrefslogtreecommitdiffstats
path: root/doc/admin/admin_commands/ktutil.rst
blob: d55ddc8944c6bbcf4ead5c8c9dc5ff25a35d6ed1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
.. _ktutil(1):

ktutil
======

SYNOPSIS
--------

**ktutil**


DESCRIPTION
-----------

The ktutil command invokes a command interface from which an
administrator can read, write, or edit entries in a keytab or Kerberos
V4 srvtab file.


COMMANDS
--------

list
~~~~

    **list**

Displays the current keylist.

Alias: **l**

read_kt
~~~~~~~

    **read_kt** *keytab*

Read the Kerberos V5 keytab file *keytab* into the current keylist.

Alias: **rkt**

read_st
~~~~~~~

    **read_st** *srvtab*

Read the Kerberos V4 srvtab file *srvtab* into the current keylist.

Alias: **rst**

write_kt
~~~~~~~~

    **write_kt** *keytab*

Write the current keylist into the Kerberos V5 keytab file *keytab*.

Alias: **wkt**

write_st
~~~~~~~~

    **write_st** *srvtab*

Write the current keylist into the Kerberos V4 srvtab file *srvtab*.

Alias: **wst**

clear_list
~~~~~~~~~~

       **clear_list**

Clear the current keylist.

Alias: **clear**

delete_entry
~~~~~~~~~~~~

    **delete_entry** *slot*

Delete the entry in slot number *slot* from the current keylist.

Alias: **delent**

add_entry
~~~~~~~~~

    **add_entry** {**-key**\|\ **-password**} **-p** *principal*
    **-k** *kvno* **-e** *enctype*

Add *principal* to keylist using key or password.

Alias: **addent**

list_requests
~~~~~~~~~~~~~

    **list_requests**

Displays a listing of available commands.

Aliases: **lr**, **?**

quit
~~~~

    **quit**

Quits ktutil.

Aliases: **exit**, **q**


EXAMPLE
-------

 ::

    ktutil:  add_entry -password -p alice@BLEEP.COM -k 1 -e
        aes128-cts-hmac-sha1-96
    Password for alice@BLEEP.COM:
    ktutil:  add_entry -password -p alice@BLEEP.COM -k 1 -e
        aes256-cts-hmac-sha1-96
    Password for alice@BLEEP.COM:
    ktutil:  write_kt keytab
    ktutil:


SEE ALSO
--------

:ref:`kadmin(1)`, :ref:`kdb5_util(8)`