{"description": "To configure how many days prior to password expiration that a warning will be issued to\nusers, run the command:\n<pre>$ sudo chage --warndays <sub idref=\"var_accounts_password_warn_age_login_defs\" /> <i>USER</i></pre>\nThis profile requirement is <tt><sub idref=\"var_accounts_password_warn_age_login_defs\" /></tt>.", "rationale": "Providing an advance warning that a password will be expiring gives users\ntime to think of a secure password. Users caught unaware may choose a simple\npassword or write it down where it may be discovered.", "severity": "medium", "references": {"nist": ["IA-5(f)", "IA-5(1)(d)", "CM-6(a)"], "pcidss4": ["8.3.9", "8.3"]}, "control_references": {"pcidss4": ["8.3.9", "8.3"]}, "components": [], "identifiers": {}, "ocil_clause": "any results are returned that are not associated with a system account", "ocil": "Verify that Ubuntu 22.04 set the days of warning before a password expires to\n<sub idref=\"var_accounts_password_warn_age_login_defs\" /> or more for users with a\npassword:\n\n$ sudo awk -F: '$6 < <sub idref=\"var_accounts_password_warn_age_login_defs\" /> || $6 == \"\" {print $1}' /etc/shadow", "oval_external_content": null, "fixtext": "Configure non-compliant accounts to ensure the number of days of warning before password\nexpires is set to <sub idref=\"var_accounts_password_warn_age_login_defs\" />:\nusrs_pass_warn_age=( $(awk -F: '$6 < <sub idref=\"var_accounts_password_warn_age_login_defs\" /> || $6 == \"\" {print $1}' /etc/shadow) )\nfor i in ${usrs_pass_warn_age[@]};\ndo\n   chage --warndays <sub idref=\"var_accounts_password_warn_age_login_defs\" /> $i\ndone", "checktext": "", "vuldiscussion": "", "srg_requirement": "", "warnings": [], "conflicts": [], "requires": [], "policy_specific_content": {}, "platform": null, "platforms": [], "sce_metadata": {}, "inherited_platforms": ["system_with_kernel"], "cpe_platform_names": [], "inherited_cpe_platform_names": ["system_with_kernel"], "bash_conditional": null, "fixes": {}, "title": "Set Existing Passwords Warning Age", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/system/accounts/accounts-restrictions/password_expiration/accounts_password_set_warn_age_existing/rule.yml", "template": null}