kinit - Unix, Linux Command
kinit - kinit is used to obtain and cache Kerberos
ticket-granting tickets. This tool is
similar in functionality to the kinit tool that
are commonly found in other
Kerberos implementations, such as SEAM and MIT Reference implementations.
The use must be registered as a principal with the Key Distribution Center
(KDC) prior to running kinit.
commands ] <principal name>
By default, for all Unix platforms a cache file
<uid> is the user identification number
of the user logged into the
system. For all other platforms, a cache file named
would be generated.
<USER_HOME> is obtained from the
user.home. <USER_NAME> is obtained from
user.name. If <USER_HOME>
is null, the cache file would be stored in
the current directory that
the program is running from.
<USER_NAME> is the operating systems login
username. This username could be different than
the users principal name. For
example on Solaris, it could be
in which duke is the <USER_NAME>
and /home/duke is the
By default, the keytab name is retrieved from
the Kerberos configuration file. If
the keytab name is not specifed in the Kerberos
configuration file, the name is
assumed to be <USER_HOME>/krb5.keytab
If you do not specify the password using
the password option on the command
line, kinit will prompt you for the password.
Note: password is provided only for testing purposes. Do not place
your password in a script or provide your password on the command
line. Doing so will compromise your password.
For more information see the man pages for kinit.
kinit -fp [
-c <cache_name> ]
-t <keytab_filename> ]
Issue a forwardable ticket.
Issue a proxiable ticket.
The cache name (i.e., FILE:/temp/mykrb5cc).
The keytab name (i.e., /home/duke/krb5.keytab).
The principal name (i.e., firstname.lastname@example.org).
The principals Kerberos password.
(DO NOT SPECIFY ON COMMAND LINE OR IN A SCRIPT.)
Requesting credentials valid for authentication
from the current client host, for
the default services, storing the credentials
cache in the default location
Requesting proxiable credentials for a different
principal and storing these credentials in a
specified file cache:
Requesting proxiable and forwardable credentials
for a different principal and
storing these credentials in a specified file cache:
Displaying the help menu for kinit:
password flag is for testing purposes only. Do not
specify your password on the command line.
Doing so is a security hole since an attacker
could discover your password while running the Unix
ps command, for example.