STIGUI
V-261353CAT II — Medium severitySV-261353r1184417_rule

All SLEM 5 local interactive user initialization files executable search paths must contain only paths that resolve to the users' home directory.

Rule version SLEM-05-411035 · STIG v1 · 2026-08-20

Discussion

The executable search path (typically the PATH environment variable) contains a list of directories for the shell to search to find executables. If this path includes the current working directory (other than the user's home directory), executables in these directories may be executed instead of system commands. This variable is formatted as a colon-separated list of directories. If there is an empty entry, such as a leading or trailing colon or two consecutive colons, this is interpreted as the current working directory. If deviations from the default system search path for the local interactive user are required, they must be documented with the information system security officer (ISSO).

Check

Verify that all SLEM 5 local interactive user initialization files executable search path statements do not contain statements that will reference a working directory other than the user's home directory with the following command:

Note: The example will be for the user "dosuser", who has a home directory of "/home/dosuser".

     > sudo grep -i path= /home/dosuser/.*

/home/dosuser/.bash_profile:PATH=$PATH:$HOME/.local/bin:$HOME/bin

If any local interactive user initialization files have executable search path statements that include directories outside of their home directory, and the additional path statements are not documented with the ISSO as an operational requirement, this is a finding.

Fix

Edit SLEM 5 local interactive user initialization files to change any PATH variable statements for executables that reference directories other than their home directory. If a local interactive user requires path variables to reference a directory owned by the application, it must be documented with the ISSO.

Identifiers

Group ID
V-261353
Group title
SRG-OS-000480-GPOS-00227
Rule ID
SV-261353r1184417_rule
Check ID
C-65082r1184416_chk
Fix ID
F-64990r996511_fix