SV-261354r996514_rule
V-261354
SRG-OS-000480-GPOS-00227
SLEM-05-411040
CAT II
10
Remove the references to these files in the local initialization scripts or remove the world-writable permission of files referenced by SLEM 5 local initialization scripts with the following command:
> sudo chmod 755 <file>
Verify that SLEM 5 local initialization files do not execute world-writable programs with the following command:
> sudo find / -xdev -perm -002 -type f -exec ls -ld {} \;
For all files listed, check for their presence in the local initialization files with the following command:
Note: The example will be for a system that is configured to create users' home directories in the "/home" directory.
> sudo find /home/* -maxdepth 1 -type f -name \.\* -exec grep -H <file > {} \;
If any local initialization files are found to reference world-writable files, this is a finding.
V-261354
False
SLEM-05-411040
Verify that SLEM 5 local initialization files do not execute world-writable programs with the following command:
> sudo find / -xdev -perm -002 -type f -exec ls -ld {} \;
For all files listed, check for their presence in the local initialization files with the following command:
Note: The example will be for a system that is configured to create users' home directories in the "/home" directory.
> sudo find /home/* -maxdepth 1 -type f -name \.\* -exec grep -H <file > {} \;
If any local initialization files are found to reference world-writable files, this is a finding.
M
5596