OL09-00-000231 - OL 9 must use the invoking user's password for privilege escalation when using 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

Configure OL 9 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 !targetpw
Defaults !rootpw
Defaults !runaspw

See Also

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

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b., CAT|II, CCI|CCI-000366, Rule-ID|SV-271475r1091137_rule, STIG-ID|OL09-00-000231, Vuln-ID|V-271475

Plugin: Unix

Control ID: 3b78233be3ae5eeb1b074276aba20a7c0e14f320e4a75ad54f9162f465b7ab67