Search code examples
kerberos

pass kinit a custom krb5.conf file


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?


Solution

  • OK, solved the problem: the default config file location can be overridden by setting the KRB5_CONFIG environment variable