mirror of
https://github.com/usnistgov/macos_security.git
synced 2026-03-20 15:30:25 +00:00
#128 changed check to use sudo sudo -V
This commit is contained in:
@@ -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: |
|
||||
|
||||
Reference in New Issue
Block a user