kinit Command Examples

Authenticate a principal with a Kerberos server to gain and cache a ticket. Note: A Kerberos principal can be either a user, service, or application. More information: https://web.mit.edu/kerberos/krb5-1.12/doc/user/user_commands/kinit.html.

kinit {{username}}

kinit -R

kinit -l {{5h}}

kinit -r {{1w}}

kinit -p {{principal@REALM}}

kinit -t {{path/to/keytab}}