about the location of the log file in /etc/krb5.conf
Giuseppe Mazza
g.mazza at imperial.ac.uk
Tue Mar 1 05:54:09 EST 2016
I have not managed to understand why my log file
/var/log/krb5kdc/krb5kdc.log
gets deleted.
However my "solution" is to use the old path, i.e.
/var/log/krb5kdc.log
root at mymaster:~# grep log /etc/krb5.conf /etc/krb5kdc/kdc.conf
/etc/krb5.conf:[login]
/etc/krb5.conf:[logging]
/etc/krb5.conf: kdc = FILE:/var/log/krb5kdc.log
/etc/krb5.conf: admin_server = FILE:/var/log/kadmin.log
and to have in place the rotation below:
root at mymaster:~# cat /etc/logrotate.d/krb5kdc
/var/log/krb5kdc.log {
missingok
notifempty
monthly
rotate 12
compress
create 644 root root
postrotate
/bin/kill -HUP `cat /var/run/krb5kdc.pid 2>/dev/null` 2>
/dev/null || true
endscript
}
This approach has worked since yesterday (the file has not got deleted):
root at mymaster:~# ls -lh /var/log/krb5kdc.log
-rw-r--r-- 1 root root 155M Mar 1 10:40 /var/log/krb5kdc.log
Thank you very much.
All the best,
Giuseppe
P.S.
I should say that the ownership on the dir /var/log
is root.syslog and not root.root on my machine:
root at mymaster:~# ls -ldh /var/log
drwxrwxr-x 14 root syslog 4.0K Mar 1 06:25 /var/log
I do not know whether it matters.
More information about the Kerberos
mailing list