The following is done on a Ubuntu 20.04 system.
This is the scenario where I am facing an issue:
- I edit the password aging settings in the
- Then I change the password of the user with
- I check what settings were applied to the password of the user with the
chage -l usercommand
The values returned seem not to be taking into account the changes made to the /etc/login.defs file.
Is there any reason for this?
How could I debug the issue? (e.g.: how to see what other settings may be tampering the values from the
The man page is pretty clear about this:
PASS_MAX_DAYS, PASS_MIN_DAYS and PASS_WARN_AGE are only used at the time of account creation. Any changes to these settings won't affect existing accounts.
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.