RHEL and Fedora setting password expiry | bash linux password expire chage

A very common Linux administration task is to set user account to expire their password and request a new account password from the user.

To see what the current policy is set to, execute the following.

You should see output like.

You can change the password expiry with the following command