Information
RHEL 10 must use the invoking user's password for privilege escalation when using "sudo".
GROUP ID: V-281210
RULE ID: SV-281210r1166582
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
Configure RHEL 10 to use the invoking user's password for privilege escalation when using "sudo".
Define the following in the Defaults section of the /etc/sudoers file or a single configuration file in the /etc/sudoers.d/ directory:
Defaults !targetpwDefaults !rootpwDefaults !runaspw