OL 9 must have the sudo package installed.

STIG ID: OL09-00-000230  |  SRG: SRG-OS-000324-GPOS-00125 |  Severity: medium |  CCI: CCI-002235 |  Vulnerability Id: V-271474

Vulnerability Discussion

sudo is a program designed to allow a system administrator to give limited root privileges to users and log root activity. The basic philosophy is to give as few privileges as possible but still allow system users to complete their work.

Check

Verify that OL 9 has the sudo package installed with the following command:

$ dnf list --installed sudo
Installed Packages
sudo.x86_64 1.9.5p2-10.el9_3 @anaconda

If the sudo package is not installed, this is a finding.

Fix

The sudo package can be installed with the following command:

# dnf install -y sudo