#128 changed check to use sudo sudo -V

This commit is contained in:
Bob Gendler
2022-04-20 13:34:00 -04:00
parent 1b03ed4b0d
commit 8a7a856406

View File

@@ -3,7 +3,7 @@ title: "Configure Sudo Timeout Period to Zero"
discussion: |
The file /etc/sudoers _MUST_ include a timestamp_timout of zero.
check: |
/usr/bin/find /etc/sudoers* -type f -exec /usr/bin/grep -E "^Defaults\s+timestamp_timeout=0" '{}' \; | /usr/bin/wc -l | /usr/bin/xargs
/usr/bin/sudo /usr/bin/sudo -V | /usr/bin/grep -c "Authentication timestamp timeout: 0.0 minutes"
result:
integer: 1
fix: |