Before I touch password policy on a server, I like to look at what is set already. One command does that, and you do not need root to ask about yourself.
chage -l shows the account aging information of a user:
chage -l <user>
The output has the date of the last password change, when the password expires, when the account becomes inactive, the account expiry date, the minimum and maximum number of days between changes, and the number of warning days. The man page says chage is restricted to root, except for -l, which an unprivileged user may use to see when their own password or account expires. For other accounts you need sudo.
chage -l "$USER"
sudo chage -l <user>
The same tool also changes these values. -M sets the maximum number of days a password is valid, -m the minimum, -W the warning days, -I the inactivity period, -d the last change date and -E the account expiry date. Dates can be written as YYYY-MM-DD:
sudo chage -M 90 -W 7 <user>
That asks for a new password every 90 days with a warning one week before. Passing -1 as -M removes the validity check.
Take care with the account expiry. sudo chage -E 2026-12-31 <user> makes the account unusable after that date, and getting back in means contacting an administrator. Double-check the user before you set it, and be especially careful with a service account or your own login.
Further reading: chage(1) manual page