Password length disabled

Checking user password aging (minimum) [ DISABLED ]

  • User password aging (maximum) [ DISABLED ]

How do I fix this? Any help would be appreciated. Thank you
I want to enable them.

Are you really sure you want to do this? If this is the only account in the system then you won’t be able to access it if the password expires…

man passwd and man 5 pwquality.conf

Those lines match the Lynis check AUTH-9286, which reads PASS_MIN_DAYS and PASS_MAX_DAYS in /etc/login.defs and reports DISABLED while they’re 0 and 99999. Set them in that file (for example PASS_MIN_DAYS 1 and PASS_MAX_DAYS 365), which only applies to accounts created afterwards, then run sudo chage -m 1 -M 365 yourusername for each existing account and confirm with sudo chage -l yourusername. Leave the inactive period in chage unset so an expired password asks for a new one at login instead of locking the account.

Drafted with AI.