I'm using kinit to log into a server that my sys admin didn't anticipate us using. It seems that the default location for the config file is /etc/krb5.conf
, but I don't have root access so I can't edit this file to add a new server. How can I pass kinit a custom config file?
You first have to make sure kinit is installed. Then, you have to configure the krb5. conf file (it can be found in /etc/krb5.
Normally, you should install your krb5. conf file in the directory /etc. You can override the default location by setting the environment variable KRB5_CONFIG. Multiple colon-separated filenames may be specified in KRB5_CONFIG; all files which are present will be read.
The krb5. conf file contains Kerberos configuration information, including the locations of KDCs and administration daemons for the Kerberos realms of interest, defaults for the current realm and for Kerberos applications, and mappings of host names onto Kerberos realms. This file must reside on all Kerberos clients.
OK, solved the problem: the default config file location can be overridden by setting the KRB5_CONFIG
environment variable
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With