fix rsyslog permissions

Post Reply
zemerdon
Site Admin
Posts: 310
Joined: Mon Jan 23, 2023 8:13 pm

fix rsyslog permissions

Post by zemerdon »

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:

Code: Select all

  /var/log/**                   rw,
  /datadrive/**                 rw,
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:

Code: Select all

sudo chgrp syslog /home/rsyslog
sudo chmod g+w /home/rsyslog

sudo systemctl restart apparmor.service
sudo systemctl restart rsyslog.service
Post Reply