fix rsyslog permissions
Posted: Wed Jun 25, 2025 6:08 pm
ERROR
Jun 25 07:56:59 syslog rsyslogd[1740]: error during config processing: omfile: creating parent directories for file '/home/rsyslog/syslog/rsyslogd.log' failed: Permission denied [v8.2312.0 try https://www.ryslog.com/e/2207 ]
FIX
Update /etc/apparmor.d/usr.sbin.rsyslogd and add the second line here under the first:
The first line is the default location, which will already exist in your config file. The second line is your datadrive mount point. Other readers should modify this location to suit.
2. Commands
Run:
Jun 25 07:56:59 syslog rsyslogd[1740]: error during config processing: omfile: creating parent directories for file '/home/rsyslog/syslog/rsyslogd.log' failed: Permission denied [v8.2312.0 try https://www.ryslog.com/e/2207 ]
FIX
Update /etc/apparmor.d/usr.sbin.rsyslogd and add the second line here under the first:
Code: Select all
/var/log/** rw,
/datadrive/** rw,2. Commands
Run:
Code: Select all
sudo chgrp syslog /home/rsyslog
sudo chmod g+w /home/rsyslog
sudo systemctl restart apparmor.service
sudo systemctl restart rsyslog.service