NixOS journald directory and logs must be owned by root to prevent unauthorized read access.
Severity | Group ID | Group Title | Version | Rule ID | Date | STIG Version |
|---|---|---|---|---|---|---|
| medium | V-268115 | SRG-OS-000057-GPOS-00027 | ANIX-00-000570 | SV-268115r1131028_rule | 2025-08-19 | 1 |
| Description |
|---|
| Only authorized personnel should be aware of errors and the details of the errors. Error messages are an indicator of an organization's operational state or can identify the NixOS system or platform. Additionally, Personally Identifiable Information (PII) and operational information must not be revealed through error messages to unauthorized personnel or their designated representatives. The structure and content of error messages must be carefully considered by the organization and development team. The extent to which the information system is able to identify and handle error conditions is guided by organizational policy and operational requirements. Satisfies: SRG-OS-000057-GPOS-00027, SRG-OS-000206-GPOS-00084 |
| ℹ️ Check |
|---|
| 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. |
| ✔️ Fix |
|---|
| 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 |