You log into the Magento 2 admin panel and you are welcomed with “It’s time to change your password.”
This can be very annoying in a development environment or on a demo server, and basically it’s like a DOS attack on the admin as you are prevented from accessing the dashboard.
Note: This will also get rid of the annoying nag.
Security is a good thing so to quick fix this let’s just do the following:
NOT recommended on a PRODUCTION environment!
cd /var/www/magento
sudo php bin/magento config:set admin/security/password_is_forced 0
sudo php bin/magento config:set admin/security/password_lifetime 0
sudo php bin/magento cache:flush
sudo redis-cli flushall
#If using Redis.
Dashboard is now accessible and no NAG!
Good to go 😀