[37439] in Kerberos
Re: about the location of the log file in /etc/krb5.conf
daemon@ATHENA.MIT.EDU (Giuseppe Mazza)
Tue Mar 1 05:54:23 2016
From: Giuseppe Mazza <g.mazza@imperial.ac.uk>
To: kerberos@mit.edu
Message-ID: <56D574D1.2050602@imperial.ac.uk>
Date: Tue, 1 Mar 2016 10:54:09 +0000
MIME-Version: 1.0
In-Reply-To: <56D47112.7060803@mit.edu>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: kerberos-bounces@mit.edu
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