max age password question

Hi All,

I got a definition on /etc/login.defs

PASS_MAX_DAYS 41

and on /etc/shadow, most of the user id fifth column (max age) is 40.

Is that different policy or not? If it is the same policy, then the above policy don't match, right.

Thanks for any comment you may add.

Cheers, happy holiday.

/etc/login.defs will be used for defaults when a user is created. /etc/shadow is actual values for each user.

If you create a new user, that user should get a max password age of 41 days. So, yes there is a one day difference.