System Administration Guide: Security Services

How to Create a Ticket

Normally, a ticket is created automatically when you log in, and you need not do anything special to obtain a ticket. However, you might need to create a ticket if your ticket expires.

To create a ticket, use the kinit command.


% /usr/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.EXAMPLE.COM:  <type password>
 

Here, the user david creates a ticket that is valid for three hours with the -l option:


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

This example shows the user david creating a forwardable ticket (with the -f option) for himself. With this forwardable ticket, he can, for example, log in to a second system.


% kinit -f david@EXAMPLE.ORG
Password for david@EXAMPLE.ORG:     <type password>
 

For more on how forwarding tickets works, see Types of Tickets.