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:
Your ticket expires.
You need to use a different principal besides your default principal. (For example, if you use rlogin -l to log in to a machine as someone else.)
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.
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 "Types of Tickets".