1 '\" te
   2 .\" Copyright (c) 2006, Sun Microsystems, Inc. All Rights Reserved
   3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
   4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
   5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
   6 .TH K5SRVUTIL 1M "Aug 29, 2006"
   7 .SH NAME
   8 k5srvutil \- host key table (keytab) manipulation utility
   9 .SH SYNOPSIS
  10 .LP
  11 .nf
  12 \fB/usr/sbin/k5srvutil\fR \fIoperation\fR [\fB-ik\fR] [\fB-f\fR \fIfilename\fR]
  13 .fi
  14 
  15 .SH DESCRIPTION
  16 .sp
  17 .LP
  18 The \fBk5srvutil\fR command allows a system manager to list or change keys
  19 currently in his keytab or to add new keys to the keytab.
  20 .sp
  21 .LP
  22 The operand \fIoperation\fR must be one of the following:
  23 .sp
  24 .ne 2
  25 .na
  26 \fB\fBlist\fR\fR
  27 .ad
  28 .RS 10n
  29 Lists the keys in a keytab, showing version number and principal name.
  30 .RE
  31 
  32 .sp
  33 .ne 2
  34 .na
  35 \fB\fBchange\fR\fR
  36 .ad
  37 .RS 10n
  38 Changes all the keys in the keytab to new randomly-generated keys, updating the
  39 keys in the Kerberos server's database to match those by using the \fBkadmin\fR
  40 protocol. If a key's version number does not match the version number stored in
  41 the Kerberos server's database, the operation fails. The old keys are retained
  42 so that existing tickets continue to work. If the \fB-i\fR flag is specified,
  43 \fBk5srvutil\fR prompts for \fByes\fR or \fBno\fR before changing each key. If
  44 the \fB-k\fR option is used, the old and new keys are displayed.
  45 .RE
  46 
  47 .sp
  48 .ne 2
  49 .na
  50 \fB\fBdelold\fR\fR
  51 .ad
  52 .RS 10n
  53 Deletes keys that are not the most recent version from the keytab. This
  54 operation should be used at some point after a change operation to remove old
  55 keys. If the \fB-i\fR flag is specified, \fBk5srvutil\fR asks the user whether
  56 the old keys associated with each principal should be removed.
  57 .RE
  58 
  59 .sp
  60 .ne 2
  61 .na
  62 \fB\fBdelete\fR\fR
  63 .ad
  64 .RS 10n
  65 Deletes particular keys in the keytab, interactively prompting for each key.
  66 .RE
  67 
  68 .sp
  69 .LP
  70 In all cases, the default keytab file is \fB/etc/krb5/krb5.keytab\fR file unless
  71 this is overridden by the \fB-f\fR option.
  72 .sp
  73 .LP
  74 \fBk5srvutil\fR uses the \fBkadmin\fR(1M) program to edit the keytab in place.
  75 However, old keys are retained, so they are available in case of failure.
  76 .SH OPTIONS
  77 .sp
  78 .LP
  79 The following options are supported:
  80 .sp
  81 .ne 2
  82 .na
  83 \fB\fB-f\fR \fIfilename\fR\fR
  84 .ad
  85 .RS 15n
  86 Specify a keytab file other than the default file, \fB/etc/krb5/krb5.keytab\fR.
  87 .RE
  88 
  89 .sp
  90 .ne 2
  91 .na
  92 \fB\fB-i\fR\fR
  93 .ad
  94 .RS 15n
  95 Prompts user before changing keys when using the \fBchange\fR or \fBdelold\fR
  96 operands.
  97 .RE
  98 
  99 .sp
 100 .ne 2
 101 .na
 102 \fB\fB-k\fR\fR
 103 .ad
 104 .RS 15n
 105 Displays old and new keys when using the \fBchange\fR operand.
 106 .RE
 107 
 108 .SH ATTRIBUTES
 109 .sp
 110 .LP
 111 See \fBattributes\fR(5) for descriptions of the following attributes:
 112 .sp
 113 
 114 .sp
 115 .TS
 116 box;
 117 c | c
 118 l | l .
 119 ATTRIBUTE TYPE  ATTRIBUTE VALUE
 120 _
 121 Interface Stability     Committed
 122 .TE
 123 
 124 .SH SEE ALSO
 125 .sp
 126 .LP
 127 \fBktutil\fR(1), \fBkadmin\fR(1M), \fBattributes\fR(5)