about the location of the log file in /etc/krb5.conf

Giuseppe Mazza g.mazza at imperial.ac.uk
Mon Feb 29 09:52:41 EST 2016


Dear All,

I have tried to semplify my initial conditions: I am changing
only the thing below:
from /var/log/krb5kdc.log
to   /var/log/krb5kdc/krb5kdc.log
in
/etc/krb5.conf
and in
/etc/krb5kdc/kdc.conf
(and restarted both services krb5-kdc and krb5-admin-server)

root at mymaster:~# grep log /etc/krb5.conf
[login]
[logging]
	kdc = FILE:/var/log/krb5kdc/krb5kdc.log
	admin_server = FILE:/var/log/kadmin.log
root at mymaster:~# grep log /etc/krb5kdc/kdc.conf
[logging]
         kdc = FILE:/var/log/krb5kdc/krb5kdc.log
         admin_server = FILE:/var/log/kadmin.log




I have no rotation in place (just to semplify my initial conditions):
root at mymaster:~# ls /etc/logrotate.d/ | grep krb
root at mymaster:~#




The problem is... after a while I get an empty file, i.e.

root at mymaster:~# ls -lh /var/log/krb5kdc/krb5kdc.log
-rw-r--r-- 1 root root 0 Feb 29 12:15 /var/log/krb5kdc/krb5kdc.log


The file /var/log/krb5kdc/krb5kdc.log gets deleted:

root at mymaster:~# lsof | grep krb5kdc.log
krb5kdc    7941          root    3w      REG              252,2  3258838 
    33566882 /var/log/krb5kdc/krb5kdc.log (deleted)
krb5kdc    7941          root    4w      REG              252,2  3258838 
    33566882 /var/log/krb5kdc/krb5kdc.log (deleted)
tail       8006          root    3r      REG              252,2  3258838 
    33566882 /var/log/krb5kdc/krb5kdc.log (deleted)

I can still see entries coming in the command below:
"tail -f /var/log/krb5kdc/krb5kdc.log"



I do not understand what I am missing. Any idea?

All the best,
Giuseppe



More information about the Kerberos mailing list