Bug 2316165 - Failed to start logrotate.service; error on /var/log/sssd/*.log
Summary: Failed to start logrotate.service; error on /var/log/sssd/*.log
Keywords:
Status: CLOSED DUPLICATE of bug 2299733
Alias: None
Product: Fedora
Classification: Fedora
Component: logrotate
Version: 41
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Jan Macku
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-10-02 18:26 UTC by seanmottles
Modified: 2024-10-03 07:09 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-10-03 07:09:08 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.