Local TOSS 5 initialization files must not execute world-writable programs.

Severity
Group ID
Group Title
Version
Rule ID
Date
STIG Version
mediumV-282730SRG-OS-000480-GPOS-00227TOSS-05-000310SV-282730r1201170_rule2026-04-011

Description

If user start-up files execute world-writable programs, especially in unprotected directories, they could be maliciously modified to destroy user files or otherwise compromise the system at the user level. If the system is compromised at the user level, it is easier to elevate privileges to eventually compromise the system at the root and network level.

ℹ️ Check

Verify local initialization files do not execute world-writable programs using the following command. Note: The example will be for a system that is configured to create user home directories in the "/home" directory. $ sudo find /home -perm -002 -type f -name ".[^.]*" -exec ls -ld {} \; If any local initialization files are found to reference world-writable files, this is a finding.

✔️ Fix

Set the mode on files being executed by the local initialization files using the following command: $ sudo chmod 0755 <file>