Bug 1120828

Summary: logcheck doesn't have permossions to read logs
Product: [Fedora] Fedora Reporter: John Ellson <john.ellson>
Component: logcheckAssignee: Matthias Runge <mrunge>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: igeorgex, mrunge
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-18 09:24:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description John Ellson 2014-07-17 19:37:15 UTC
Description of problem:
logcheck doesn't have permissions to read logs

Version-Release number of selected component (if applicable):
logcheck-1.3.14-9.fc20.noarch


How reproducible:
100%

Steps to Reproduce:
1.sudo -u logcheck logcheck -o -t
2.
3.

Actual results:
Error: Could not run logtail or save output.


Expected results:
Summary of interesting log messages

Additional info:
Tried:
    chown root:adm /var/log/messages; chmod 640 /var/log/messages
but something change them back withun seconds.

Tried:
    setfacl -m u:logcheck:r /var/log/messages
but the effect permissions didn't change - no acl on default mounts.

Comment 1 Matthias Runge 2014-07-18 09:24:03 UTC
Yes, that's a known issue, you need some additions tweaking; sadly, there's not much I can do about it.

*** This bug has been marked as a duplicate of bug 1062147 ***

Comment 2 John Ellson 2014-07-18 13:46:41 UTC
Then why close the bug?   Why not leave it open until someone fixes it, or removes the useless package?

Comment 3 Matthias Runge 2014-07-21 11:23:53 UTC
It's a configuration issue on your system.

Add to  /etc/logrotate.d/syslog:
create 0640 root adm

that makes /var/log/messages to be created with the appropriate ownerships.