Hi Ivo,
> Today I updated my distro and ran into a problem.
> The logging system has changed from the old syslog-ng to systemd's
> rsyslogd.
> As per man page (5) of rsyslog.conf I set the strings to have inn2
> logging separated by file, but even restarting inn2 and systemd nothing
> is logged in those files, only in /var/log/news/news and I can't
> understand why.
Looking at the release notes of Lunar Lobster 23.04, I see a change in
rsyslog:
https://discourse.ubuntu.com/t/lunar-lobster-release-notes/31910
"Two more packages now have AppArmor profiles defaulting to enforce
mode: rsyslog 9 and isc-kea 7.
Previously, rsyslog did have an apparmor profile, but it was disabled by
default. This profile was examined and changed, and is a bit more
dynamic now, adjusting itself to the rsyslog configuration."
Could you try to disable the AppArmor profile for rsyslog to see whether
news logging works fine without it?
You may find interesting things in /etc/apparmor.d/usr.sbin.rsyslogd and
the /etc/apparmor.d/rsyslog.d directory.
Perhaps rsyslog does not have the rights to chown files or write to
files in /var/log/news?
--
Julien ÉLIE
« Les grands voyages ont ceci de merveilleux que leur enchantement
commence avant le départ même. On ouvre les atlas, on rêve sur les
cartes. On répète les noms magnifiques des villes inconnues… » (Joseph
Kessel)