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@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@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@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@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.

________________________________________________
Kerberos mailing list           Kerberos@mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos

Reply via email to