Description of problem: I installed logcheck and now I get mails from cron with the following error message: Subject: Cron <logcheck@genius> if [ -x /usr/sbin/logcheck ]; then nice -n10 /usr/sbin/logcheck; fi [...] /usr/sbin/logcheck: line 100: kill: (25311) - No such process Version-Release number of selected component (if applicable): logcheck-1.3.13-4.fc14 How reproducible: always Steps to Reproduce: 1. yum install logcheck 2. wait for mails from cron Actual results: mails with above error message Expected results: no mails with error messages Additional info:
This should be fixed immediately after chgrp adm /var/log/messages I'm thinking about a fix. This will probably change ownership of logcheck binaries, as now on all fedora/redhat systems /var/log/messages etc. are owned by root and may be read by root. Logcheck originally is owned by its own user, who may read log messages. The other solution would set a sticky bit on logtail. What do you think?
(In reply to comment #1) > This should be fixed immediately after > > chgrp adm /var/log/messages I guess this won't help, because it has file moede 600 here. > I'm thinking about a fix. This will probably change ownership of logcheck > binaries, as now on all fedora/redhat systems /var/log/messages etc. are owned > by root and may be read by root. Logcheck originally is owned by its own user, > who may read log messages. > The other solution would set a sticky bit on logtail. > > What do you think? If it is a permission problem, then it should probably be discussed on fedora-devel to get a sane group for logfiles to add the logcheck user to.
Btw. even if /var/log/messages is readable for the group adm the error mail is still send.
Till, could you please check further: is /var/log/secure readable by group and group is adm? -rw-r----- 1 root adm 50463 Feb 19 21:28 /var/log/secure if yes, it's the same issue as for /var/log/messages, if not, there's some other issue. (in default configuration, just /var/log/messages and /var/log/secure is checked by logcheck) Thanks
This message is a notice that Fedora 14 is now at end of life. Fedora has stopped maintaining and issuing updates for Fedora 14. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At this time, all open bugs with a Fedora 'version' of '14' have been closed as WONTFIX. (Please note: Our normal process is to give advanced warning of this occurring, but we forgot to do that. A thousand apologies.) Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, feel free to reopen this bug and simply change the 'version' to a later Fedora version. Bug Reporter: Thank you for reporting this issue and we are sorry that we were unable to fix it before Fedora 14 reached end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged to click on "Clone This Bug" (top right of this page) and open it against that version of Fedora. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping
That problem still persists in RHEL6...
Christoph, sadly, there's nothing much I can do about it. It's a client configuration problem.
(In reply to comment #7) > Christoph, > > sadly, there's nothing much I can do about it. It's a client configuration > problem. There is still the problem, that the mail does not say what is wrong. Afaics this is only send to the user logcheck because /etc/logcheck/logcheck.conf makes logcheck send mail to the user logcheck. Maybe it would be better to configure root instead of logcheck by default there, because it seems to be very likely that nobody will notice these mails in /var/spool/mail/logcheck.
Matthias, You say nothing can be done about it because it's a client configuration problem. Yet i installed this on a clean system, and it started mailing every hour.
The problem is, that in fedora/rhel e.g. /var/log/messages is just readable by root, and nobody else. To change this, I'd file a bug against that package containing that file: rpm -qf /var/log/messages file /var/log/messages is not owned by any package ^^^ A workaround working for me quite well is: 1. add create 0640 root adm to /etc/logrotate.d/syslog 2. install syslog-ng 3. change its config file: destination d_mesg { file("/var/log/messages" owner("root") group("adm") perm(0640) ); }; destination d_auth { file("/var/log/secure" owner("root") group("adm") perm(0640) ); }; (syslog-ng takes care on file permissions). It seems just taking logrotate to take care on file permissions is not sufficient.
I had a similar issue with CentOS release 6.4 (Final) SELinux is enable (Enforcing) I found a way to make it work by doing: setfacl -m u:logcheck:r /var/log/messages setfacl -m u:logcheck:r /var/log/secure No additional stuff required, hope this might help someone...
This message is a reminder that Fedora 17 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 17. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '17'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 17's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 17 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior to Fedora 17's end of life. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Fedora 17 changed to end-of-life (EOL) status on 2013-07-30. Fedora 17 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. Thank you for reporting this bug and we are sorry it could not be fixed.