Displaying 1 result from an estimated 1 matches for "sp_lastchg".
2000 Sep 20
1
password aging and account lock checks
...gt;sp_lstchg > 0) && (spw->sp_max > 0) &&
(days > (spw->sp_lstchg + spw->sp_max)))
return 0;
If I expire a password with passwd -f:
-f Force user to change password upon next login by
expiring the current password.
sp_lastchg is set to 0. The above code does not catch that. So
it seems we want something like this (untested):
/* Check password expiry */
if (spw->sp_lstchg == 0 || (spw->sp_max > 0 &&
days > spw->sp_lstchg + spw->sp_max)) {
debug("Password for user \"%.200s...