Information
Passwords for new users or password changes must have a 24-hour minimum password lifetime restriction in /etc/login.defs.
GROUP ID: V-269408
RULE ID: SV-269408r1050291
Enforcing a minimum password lifetime helps to prevent repeated password changes to defeat the password reuse or history enforcement requirement. If users are allowed to immediately and continually change their password, then the password could be repeatedly changed in a short period of time to defeat the organization's policy regarding password reuse.
Solution
Configure AlmaLinux OS 9 to enforce 24 hours as the minimum password lifetime.
Modify the "/etc/login.defs" file to set the "PASS_MIN_DAYS" parameter to 1 or greater:
PASS_MIN_DAYS 1