RHEL-09-432020 - RHEL 9 must use the invoking user's password for privilege escalation when using 'sudo' - sudo.

Information

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.

Solution

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

Defaults !targetpw
Defaults !rootpw
Defaults !runaspw

See Also

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

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b., CAT|II, CCI|CCI-000366, Rule-ID|SV-258085r991589_rule, STIG-ID|RHEL-09-432020, Vuln-ID|V-258085

Plugin: Unix

Control ID: ee1ad686e115668eff548cfaec4235aceef53cee0692c531e84e66fb8f1c4f00