SV-220079r603266_rule
V-220079
SRG-OS-000480
GEN000960
CAT II
10
For each world-writable path in root's executable search path, perform one of the following.
1. Remove the world-writable permission on the directory.
Procedure:
# chmod o-w <path>
2. Remove the world-writable directory from the executable search path.
Procedure:
Identify and edit the initialization file referencing the world-writable directory and remove it from the PATH variable.
Check for world-writable permissions on all directories in the root user's executable search path. Procedure (on multiple lines):
# echo $PATH | sed 's/ /\\ /g; s/:/
/g' | xargs ls -ld
If any of the directories in the PATH variable are world-writable, this is a finding.
V-220079
False
GEN000960
Check for world-writable permissions on all directories in the root user's executable search path. Procedure (on multiple lines):
# echo $PATH | sed 's/ /\\ /g; s/:/
/g' | xargs ls -ld
If any of the directories in the PATH variable are world-writable, this is a finding.
M
4061