ALMA-09-032250 - AlmaLinux OS 9 must require reauthentication when using the "sudo" command.

Information

Without re-authentication, users may access resources or perform tasks for which they do not have authorization.

When operating systems provide the capability to escalate a functional capability, it is critical the user re-authenticate.

Solution

Configure AlmaLinux OS 9 to reauthenticate "sudo" commands after the specified timeout:

Add the following line to "/etc/sudoers" or a file within "/etc/sudoers.d/":

Defaults timestamp_timeout=0

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_CL_AlmaLinux_OS_9_V1R6_STIG.zip