I am trying to apply a policy which searches for the string within /etc/login.defs

PASS_MAX_DAYS 99999

and modifies it with another number.

When I apply the policy it seems to skip the modification but doesn't give an error. Does anyone have any ideas why?