KINIT(1)
π KINIT(1) π
okay bestie, so this is kinit from the General Commands Manual section 1 (that's the "you can literally just type this in your shell" section, iykyk) β¨
πΈ NAME πΈ
kinit β acquire initial tickets. that's it. that's the whole job. she gets you tickets π
β¨ SYNOPSIS β¨
kinit [--afslog] [-c cachename | --cache=cachename] [-f | --forwardable]
[-F | --no-forwardable] [-t keytabname | --keytab=keytabname] [-l
time | --lifetime=time] [-p | --proxiable] [-R | --renew]
[--renewable] [-r time | --renewable-life=time] [-S principal |
--server=principal] [-s time | --start-time=time]
[-k | --use-keytab] [-v | --validate] [-e enctypes |
--enctypes=enctypes] [-a addresses | --extra-addresses=addresses]
[--password-file=filename] [--fcache-version=version-number]
[-A | --no-addresses] [-n | --anonymous] [--enterprise]
[--version] [--help] [principal [command]]
like. she has a lot of options. she's high maintenance but she delivers π
π¦ DESCRIPTION π¦
So kinit is the girl who goes and authenticates you to the Kerberos server as principal β or, if you didn't give her a principal, as a system-generated default (usually your login name at the default realm, bestie) β and then she comes back with a ticket granting ticket</> that you can later use to snag tickets for other services. main character energy, honestly π
Supported options:
-ccachename,--cache=cachename β the credentials cache to put the acquired ticket in, if you want something other than the default. a lil home for your ticket π-f,--forwardableβ obtain a ticket that can be forwarded to another host. she's traveling βοΈ-F,--no-forwardableβ do not obtain a forwardable ticket. stay home. no trips. periodt.-tkeytabname,--keytab=keytabname β don't ask for a password, just pull the key from the specified keytab instead. no password popup, we love that for us π-ltime,--lifetime=time β specifies the lifetime of the ticket. the argument can be in seconds, or a cuter, more human-readable string likeβ1hββ°-p,--proxiableβ request tickets with the proxiable flag set. yes queen, set the flag π©-R,--renewβ try to renew the ticket. the ticket has to have theβrenewableβflag set, and it must not be expired (if it's expired she literally cannot help you, sorry bestie π).--renewableβ the same as--renewable-life, but with an infinite time β¨-rtime,--renewable-life=time β the max renewable ticket life. the ceiling. the limit. the boundary-setting π-Sprincipal,--server=principal β get a ticket for a service other thankrbtgt/LOCAL.REALM. going somewhere other than the usual spot π«-stime,--start-time=time β obtain a ticket that starts being valid time seconds into the future. and honestly time can really be a generic time specification, likeβ1hβπ-k,--use-keytabβ the same as--keytab, but with the default keytab name (normallyFILE:/etc/krb5.keytab). default queen π-v,--validateβ try to validate an invalid ticket. glow-up for a ticket that's not doing so hot π-e,--enctypes=enctypes β request tickets with this particular enctype.--password-file=filename β read the password from the first line of filename. and if the filename isSTDIN, the password gets read from the standard input. sneaky but valid π--fcache-version=version-number β create a credentials cache of version version-number.-a,--extra-addresses=enctypes β adds a set of addresses that will, in addition to the system's local addresses, be put in the ticket. this can be useful if all the addresses a client can use can't be automatically figured out. one such example is if the client is behind a firewall. also settable vialibdefaults/extra_addressesinkrb5.conf(5). lowkey a lifesaver behind a firewall π§±π₯-A,--no-addressesβ request a ticket with no addresses. ghost mode π»-n,--anonymousβ request an anonymous ticket. here's the tea: with the default (false) setting of thehistorical_anon_pkinitconfiguration parameter, if the principal is specified as@REALM, then anonymous PKINIT will be used to acquire an unauthenticated anonymous ticket, and both the client name and (with fully RFC-comformant KDCs) the realm in the returned ticket will be anonymized. otherwise, authentication proceeds as normal and the anonymous ticket will have only the client name anonymized. withhistorical_anon_pkinitset to true, the principal is interpreted as a realm even without an at-sign prefix, and it is not possible to obtain authenticated anonymized tickets. π«₯--enterpriseβ parse principal as an enterprise (KRB5-NT-ENTERPRISE) name. enterprise names are email-like principals that are stored in the name part of the principal, and since there are two@characters the parser needs to know that the first one is not a realm. an example of an enterprise name isβlha@e.kth.se@KTH.SEβ, and this option is usually used with canonicalize so that the principal returned from the KDC will typically be the real principal name. π--afslogβ gets AFS tickets, converts them to version 4 format, and stores them in the kernel. only useful if you have AFS. if you don't have AFS this does nothing for you, bestie π
ok so also: the forwardable, proxiable, ticket_life, and renewable_life options can be set to a default value from the appdefaults section in krb5.conf β see krb5_appdefault(3). defaults, we love her π
and here's the cute part: if a command is given, kinit will set up new credentials caches, and AFS PAG, and then run the given command. when it finishes, the credentials will be removed. like a lil pop-up shop that closes when you leave ποΈβ¨
π ENVIRONMENT π
KRB5CCNAMEβ specifies the default credentials cache. this is where your tickets live rent-free π‘KRB5_CONFIGβ the file name ofkrb5.conf, the default being/etc/krb5.conf. π
π«Ά SEE ALSO π«Ά
go read those too, bestie, they're the supporting cast and they ate π
and that's the whole page!! this one came from HEIMDAL, dated April 25, 2006 β an absolute icon of a release date, no cap. mwah, go get those tickets ππβ¨
π¦ where this page comes from
- epel 10: heimdal-workstation 7.8.0-26.el10_2 Β· BSD-2-Clause AND BSD-3-Clause AND HPND-export-US AND HPND-export2-US AND LicenseRef-Fedora-Public-Domain
- epel 9: heimdal-workstation 7.8.0-5.el9 Β· BSD and MIT
- fedora 43: heimdal-workstation 7.8.0-26.fc43 Β· BSD-2-Clause AND BSD-3-Clause AND HPND-export-US AND HPND-export2-US AND LicenseRef-Fedora-Public-Domain
- fedora 44: heimdal-workstation 7.8.0-26.fc43 Β· BSD-2-Clause AND BSD-3-Clause AND HPND-export-US AND HPND-export2-US AND LicenseRef-Fedora-Public-Domain
- fedora 44: heimdal-workstation 7.8.0-28.fc44 Β· BSD-2-Clause AND BSD-3-Clause AND HPND-export-US AND HPND-export2-US AND LicenseRef-Fedora-Public-Domain
- Copyright (c) 1998 - 2003, 2006 Kungliga Tekniska HΓΆgskolan
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms