SV-274139r1120405_rule
V-274139
SRG-OS-000072-GPOS-00040
AZLX-23-002385
CAT II
10
Configure Amazon Linux 2023 to enforce password complexity on the root account.
Add or update the following line in the "/etc/security/pwquality.conf" file or a configuration file in the "/etc/security/pwquality.conf.d/" directory to contain the "enforce_for_root" parameter:
enforce_for_root
Verify Amazon Linux 2023 enforces password complexity rules for the root account with the following command:
$ sudo grep -rs enforce_for_root /etc/security/pwquality.conf /etc/security/pwquality.conf.d/*.conf
/etc/security/pwquality.conf:enforce_for_root
If "enforce_for_root" is commented or missing, this is a finding.
V-274139
False
AZLX-23-002385
Verify Amazon Linux 2023 enforces password complexity rules for the root account with the following command:
$ sudo grep -rs enforce_for_root /etc/security/pwquality.conf /etc/security/pwquality.conf.d/*.conf
/etc/security/pwquality.conf:enforce_for_root
If "enforce_for_root" is commented or missing, this is a finding.
M
5700