pass kinit a custom krb5.conf file

Shep picture Shep · Sep 6, 2012 · Viewed 32.6k times · Source

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?

Answer

Shep picture Shep · Sep 6, 2012

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