specify the principal to which the newly added key belongs.
The principal name must be in canonical, fully qualified
MIT Kerberos form
(principal_name@realm_name).
This argument is required.
-pwpassword
specify the key password to be converted
to a key and placed in the key table.
If this option is not specified, the user must
enter the key password twice at non-echoing prompts.
-ffile
specify an alternative file to use for the service key table.
The default pathname for the file is /krb5/v5srvtab.
-vversion
specify a version number.
The default is the next unused version number in sequence.
Warning
Key version numbers are important.
Note the following warnings:
Only use ktadd if the service
or host principal is brand new
(the service key must be version 1),
or the version number is otherwise known.
Use only the
kpasswd(TC)
command to change or initialize the host key (this is
because it automatically operates correctly on version numbers).
Users may not be able to log in if the host service key
is set to the wrong version number in the
/krb5/v5srvtab file.