DISA STIGS Viewer

Local AlmaLinux OS 9 initialization files must not execute world-writable programs.

Overview

Finding ID Version Rule ID IA Controls Severity
V-269302 ALMA-09-025210 SV-269302r1050184_rule   Medium
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.
STIG Date
CloudLinux AlmaLinux OS 9 Security Technical Implementation Guide 2025-05-22

Details

Check Text (C-73333r1048282_chk)
Verify that local initialization files do not execute world-writable programs with the following command:

Note: The example will be for a system that is configured to create user home directories in the "/home" directory.

$ 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 Text (F-73234r1048283_fix)
Set the mode on files being executed by the local initialization files with the following command:

$ chmod 0755 <file>