STIGUI
V-256561CAT II — Medium severitySV-256561r1268251_rule

The Photon operating system must be configured so that all global initialization scripts are protected from unauthorized modification.

Rule version PHTN-30-000092 · STIG v1 · 2026-08-31

Discussion

Local initialization files are used to configure the user's shell environment upon login. Malicious modification of these files could compromise accounts upon login.

Check

At the command line, run the following command:

# find /etc/bash.bashrc /etc/profile /etc/profile.d/ -xdev -type f -a '(' -perm -002 -o -not -user root -o -not -group root ')' -exec ls -ld {} \;

If any files are returned, this is a finding.

Fix

At the command line, run the following commands for each returned file:

# chmod o-w <file>
# chown root:root <file>

Identifiers

Group ID
V-256561
Group title
SRG-OS-000480-GPOS-00227
Rule ID
SV-256561r1268251_rule
Check ID
C-60236r887355_chk
Fix ID
F-60179r887356_fix