Hello forum,
I am running a daily CIS compliance (CIS RedHat Enterprise Linux 7 Benchmark Level 1 - server) check nightly and on one server two checks fail and exit because of timeout (many, many files!):
xccdf_org.cisecurity.benchmarks_rule_6.1.11_Ensure_no_unowned_files_or_directories_exist:
Command df --local -P | awk {'if (NR!=1) print $6'} | xargs -I '{}' find '{}' -xdev -nouser
timed out after seconds
xccdf_org.cisecurity.benchmarks_rule_6.1.12_Ensure_no_ungrouped_files_or_directories_exist:
Command df --local -P | awk {'if (NR!=1) print $6'} | xargs -I '{}' find '{}' -xdev -nogroup
timed out after seconds
I tried to create a wrapper and overwrite the checks above and append a "timeout=3600" option to the command directive. Sadly this did not work.
Any advice an how to add this timeout the correct way?
Thanks!