SV-261376r996564_rule
V-261376
SRG-OS-000480-GPOS-00227
SLEM-05-432030
CAT II
10
Configure the "/etc/sudoers" file to only include the "/etc/sudoers.d" directory.
Add or modify the following line:
@includedir /etc/sudoers.d
Remove any nested includes under the "/etc/sudoers.d" directory.
Verify SLEM 5 specifies only the default "include" directory for the /etc/sudoers file, and does not have nested "include" files or directories within the /etc/sudoers.d directory with the following command:
Note: If the "include" and "includedir" directives are not present in the /etc/sudoers file, this requirement is not applicable.
> sudo find /etc/sudoers /etc/sudoers.d -type f -exec grep -H "[#@]include" {} +
/etc/sudoers:@includedir /etc/sudoers.d
If the results are not "/etc/sudoers.d" or additional files or directories are specified, this is a finding.
V-261376
False
SLEM-05-432030
Verify SLEM 5 specifies only the default "include" directory for the /etc/sudoers file, and does not have nested "include" files or directories within the /etc/sudoers.d directory with the following command:
Note: If the "include" and "includedir" directives are not present in the /etc/sudoers file, this requirement is not applicable.
> sudo find /etc/sudoers /etc/sudoers.d -type f -exec grep -H "[#@]include" {} +
/etc/sudoers:@includedir /etc/sudoers.d
If the results are not "/etc/sudoers.d" or additional files or directories are specified, this is a finding.
M
5596