STIGUI
V-258831CAT II — Medium severitySV-258831r958564_rule

The Photon operating system /var/log directory must be restricted.

Rule version PHTN-40-000073 · STIG v2 · 2026-08-26

Discussion

Any operating system providing too much information in error messages risks compromising the data and security of the structure, and content of error messages needs to be carefully considered by the organization.

Organizations carefully consider the structure/content of error messages. The extent to which information systems are able to identify and handle error conditions is guided by organizational policy and operational requirements. Information that could be exploited by adversaries includes, for example, erroneous logon attempts with passwords entered by mistake as the username, mission/business information that can be derived from (if not stated explicitly by) information recorded, and personal information, such as account numbers, social security numbers, and credit card numbers.

Check

At the command line, run the following command to verify permissions on the /var/log directory:

# stat -c "%n is owned by %U and group owned by %G with permissions of %a" /var/log

Expected result:

/var/log is owned by root and group owned by root with permissions of 755

If the /var/log directory is not owned by root, this is a finding. If the /var/log directory is not group owned by root, this is a finding. If the /var/log directory permissions are not set to 0755 or less, this is a finding.

Fix

At the command line, run the following commands:

# chown root:root /var/log
# chmod 0755 /var/log

Identifiers

Group ID
V-258831
Group title
SRG-OS-000205-GPOS-00083
Rule ID
SV-258831r958564_rule
Check ID
C-62571r933552_chk
Fix ID
F-62480r933553_fix