The Photon operating system messages file must have the correct ownership and file permissions.
Severity | Group ID | Group Title | Version | Rule ID | Date | STIG Version |
|---|---|---|---|---|---|---|
| medium | V-256516 | SRG-OS-000206-GPOS-00084 | PHTN-30-000041 | SV-256516r958566_rule | 2024-12-16 | 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 and can provide sensitive information to an unprivileged attacker.
ℹ️ Check
At the command line, run the following command:
# stat -c "%n is owned by %U and group owned by %G with %a permissions" /var/log/messages
If the "/var/log/messages" directory is not owned by root or not group owned by root, or the file permissions are more permission than "640", this is a finding.
✔️ Fix
At the command line, run the following commands:
# chown root:root /var/log/messages
# chmod 0640 /var/log/messages