Sun Enterprise Authentication Mechanism Guide

How to Create a Ticket

Normally a ticket is created automatically when you log in and you need not do anything special to obtain one. However, you might need to create a ticket in the following cases:

To create a ticket, use the kinit command.


% /usr/krb5/bin/kinit 
 

kinit prompts you for your password. For the full syntax of the kinit command, see the kinit(1) man page.

Example -- Creating a Ticket

This example shows a user, jennifer, creating a ticket on her own system:


% kinit
Password for jennifer@ENG.ACME.COM:  <enter password>
 

Here the user david creates a ticket good for three hours with the -l option:


% kinit -l 3h david@ACME.ORG
Password for david@ACME.ORG:  <enter password>
 

This example shows david creating a forwardable ticket (with -f) for himself. With this forwardable ticket, he can (for example) log in to a second system, and then telnet to a third system.


% kinit -f david@ACME.ORG
Password for david@ACME.ORG:     <enter password>
 

For more on how forwarding tickets works, see "Forwarding Tickets with -f and -F" and "Types of Tickets".