初始化
This will create five files in LOCALSTATEDIR/krb5kdc (or at the locations specified in kdc.conf):
- two Kerberos database files, principal, and principal.ok
- the Kerberos administrative database file, principal.kadm5
- the administrative database lock file, principal.kadm5.lock
- the stash file, in this example .k5.ATHENA.MIT.EDU. If you do not want a stash file, run the above command without the -s option.
krb5.conf
cat /etc/krb5.conf
kdc.conf
cat /var/lib/kerberos/krb5kdc/kdc.conf