Bug 2316165

Summary: Failed to start logrotate.service; error on /var/log/sssd/*.log
Product: [Fedora] Fedora Reporter: seanmottles
Component: logrotateAssignee: Jan Macku <jamacku>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 41CC: jamacku, kdudka, lzaoral, svashisht, vmihalko
Target Milestone: ---Keywords: Desktop
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-10-03 07:09:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description seanmottles 2024-10-02 18:26:18 UTC
Fedora 41 XFCE Spin logrotate.service fails to start because of an issue with /var/log/sssd/*.log

It does look like /var/log/sssd/ exists, but it is empty:

root@t470:~# ls -la /var/log/sssd/
total 8
drwxrwx---.  2 sssd sssd 4096 Sep 25 02:00 .
drwxr-xr-x. 19 root root 4096 Oct  2 19:25 ..
root@t470:~# 


Reproducible: Always

Steps to Reproduce:
1. Install F41 XFCE
2. Login as normal user
3.
Actual Results:  
Oct 02 19:25:03 t470 logrotate[5666]: error: skipping "/var/log/sssd/*.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation.
Oct 02 19:25:03 t470 systemd[1]: logrotate.service: Main process exited, code=exited, status=1/FAILURE
Oct 02 19:25:03 t470 systemd[1]: logrotate.service: Failed with result 'exit-code'.
Oct 02 19:25:03 t470 systemd[1]: Failed to start logrotate.service - Rotate log files.


Expected Results:  
No errors.

Comment 1 Jan Macku 2024-10-03 07:09:08 UTC

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