this post was submitted on 31 Mar 2025
6 points (100.0% liked)
Fedora Linux
2173 readers
13 users here now
All about Fedora Linux
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Thanks for the reply!
Here are the contents of
/etc/logrotate.d/samba
Should I just delete that
olddir /var/log/samba/old
line? I may have added that line when troubleshooting this issue via referencing old forum posts online, not sure.Yeah, ditch that and let it just do copytruncate. Nothing else looks especially weird. You can have it move old logs somewhere else if you want, but that's largely not needed, especially if your logs are also being shuffled to journal.
Cool so I deleted that line. I'm just hoping to get logrotate to work normally with its default configuration lol.
Here's the output of
ls -la /var/log/samba/
I changed a few of these back to
root:root
~ a week ago; I believe the ones forsmbd
andsamba-dcerpcd
were previously owned by a user and group I set up for my samba share which I think was also causing problems. Do you know if these are otherwise correct?I just ran
sudo systemctl restart logrotate.service
and it completed without issues. With that being said, it also completed without issues when I ran it the last couple times over the last few weeks with my old and broken config, so I'm unsure whether that single line fix from/etc/logrotate.d/samba
is enough. Is there anything else you can think of I should be checking?It's a permissions and pathing issue, so just check it tomorrow and see what it does.