In Linux, when a user password is expired, it throws the following message after login and asks to change password,
WARNING: Your password has expired. You must change your password now and login again! Changing password for test. (current) UNIX password:
Now, after expiration instead of changing the password this way using a Linux shell, I want to redirect it to a different menu using a password change script. How can I achieve this?