LinuxCommandLibrary

kinit

obtains Kerberos tickets from the Key Distribution Center

TLDR

Get Kerberos ticket

$ kinit [username]
copy
Get ticket for specific principal
$ kinit [username@REALM]
copy
Specify keytab file
$ kinit -k -t [keytab.file] [principal]
copy
Get forwardable ticket
$ kinit -f [username]
copy
Set ticket lifetime
$ kinit -l [1h] [username]
copy
Renew existing ticket
$ kinit -R
copy

SYNOPSIS

kinit [options] [principal]

DESCRIPTION

kinit obtains Kerberos tickets from the Key Distribution Center (KDC). The ticket-granting ticket (TGT) enables authentication to Kerberos-protected services without repeated password entry.
The tool is essential for Kerberos authentication in enterprise environments, accessing services like NFS, SSH, and Active Directory.

PARAMETERS

-k

Use keytab file.
-t keytab
Keytab file path.
-l lifetime
Ticket lifetime.
-r lifetime
Renewable lifetime.
-f
Get forwardable ticket.
-F
Non-forwardable ticket.
-p
Get proxiable ticket.
-R
Renew existing ticket.
-c cache
Credentials cache.
-S service
Service principal.

CAVEATS

Requires KDC access. Tickets expire and need renewal. Keytabs need protection. Clock sync required.

HISTORY

kinit is part of MIT Kerberos and Heimdal implementations. Kerberos was developed at MIT in the 1980s as part of Project Athena, named after the three-headed dog guarding Hades in Greek mythology.

SEE ALSO

klist(1), kdestroy(1), kpasswd(1), krb5.conf(5)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community