5.2.8 Ensure users password required for privilege escalation when using sudo - rootpw

Information

The Linux operating system must use the invoking user's password for privilege escalation when using 'sudo'

Rationale:

The sudoers security policy requires that users authenticate themselves before they can use sudo. When sudoers requires authentication, it validates the invoking user's credentials. If the rootpw, targetpw, or runaspw flags are defined and not disabled, by default the operating system will prompt the invoking user for the 'root' user password. For more information on each of the listed configurations, reference the sudoers(5) manual page.

Solution

Define the following in the Defaults section of the /etc/sudoers file or a configuration file in the /etc/sudoers.d/ directory:

Defaults !targetpw
Defaults !rootpw
Defaults !runaspw

See Also

https://workbench.cisecurity.org/files/3636

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-6(5), CCI|CCI-002227, CSCv7|4.3, Rule-ID|SV-237634r646853_rule, STIG-ID|RHEL-07-010342

Plugin: Unix

Control ID: 689fece28b334ad293ca6d9bdbb022301b0997e1332b1cd991409b95a28b9df6