SV-221739r603260_rule
V-221739
SRG-OS-000480-GPOS-00227
OL07-00-020730
CAT II
10
Set the mode on files being executed by the local initialization files with the following command:
# chmod 0755 <file>
Verify that local initialization files do not execute world-writable programs.
Check the system for world-writable files with the following command:
# find / -xdev -perm -002 -type f -exec ls -ld {} \; | more
For all files listed, check for their presence in the local initialization files with the following commands:
Note: The example will be for a system that is configured to create users' home directories in the "/home" directory.
# grep <file> /home/*/.*
If any local initialization files are found to reference world-writable files, this is a finding.
V-221739
False
OL07-00-020730
Verify that local initialization files do not execute world-writable programs.
Check the system for world-writable files with the following command:
# find / -xdev -perm -002 -type f -exec ls -ld {} \; | more
For all files listed, check for their presence in the local initialization files with the following commands:
Note: The example will be for a system that is configured to create users' home directories in the "/home" directory.
# grep <file> /home/*/.*
If any local initialization files are found to reference world-writable files, this is a finding.
M
4089