kinitSection: User Commands (1)Updated: 18 June 2002 |
kinitSection: User Commands (1)Updated: 18 June 2002 |
The use must be registered as a principal with the Key Distribution Center (KDC) prior to running kinit.
<USER_HOME> is obtained from the java.lang.System property user.home. <USER_NAME> is obtained from java.lang.System property 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 system's login username. This username could be different than the user's principal name. For example on Solaris, it could be /home/duke/krb5cc_duke, in which duke is the <USER_NAME> and /home/duke is the <USER_HOME>.
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 duke@JAVA.SUN.COM
Requesting proxiable credentials for a different principal and storing these credentials in a specified file cache:
kinit -p -c FILE:/home/duke/credentials/krb5cc_cafebeef cafebeef@JAVA.SUN.COM
Requesting proxiable and forwardable credentials for a different principal and storing these credentials in a specified file cache:
kinit -f -p -c FILE:/home/duke/credentials/krb5cc_cafebeef cafebeef@JAVA.SUN.COM
Displaying the help menu for kinit:
kinit -help