How to force a password change on next login
How to force a password change on next login
Posted Aug 8, 2026 13:50 UTC (Sat) by tchernobog (subscriber, #73595)Parent article: Changes in shadow-utils password-expiration features
> the third (date of last password change) [...] and the fifth (maximum password age)
What is the blessed way to force a change of password on the next login, in the case of accounts created with a default password by an administrator?
E.g. on embedded devices, there is often an "admin:admin" user where we set the max password age to 1 to enforce a change.
Other features related to ageing of password are probably fine to deprecate, but this one is very useful in my opinion for stock accounts.
