SV-268115r1131028_rule
V-268115
SRG-OS-000057-GPOS-00027
ANIX-00-000570
CAT II
10
The systemd-journald logs are by design stored with root:systemd-journald owner and group respectively.
If any files are found with different ownership, run the following command to correct them:
$ sudo chown -R root:systemd-journald /var/log/journald
Verify the journald directories and logs are owned by "root" by executing the following command:
$ sudo find /var/log/journal -printf "%p %u\n"
/var/log/journal root
/var/log/journal/8960867736094c2089638a86c43fd755 root
If any occurrences of owner are not "root", this is a finding.
V-268115
False
ANIX-00-000570
Verify the journald directories and logs are owned by "root" by executing the following command:
$ sudo find /var/log/journal -printf "%p %u\n"
/var/log/journal root
/var/log/journal/8960867736094c2089638a86c43fd755 root
If any occurrences of owner are not "root", this is a finding.
M
5658