Is there any way when force password change on next login can trigger a script immediately after password reset

Latest response

Hi,

For one of our product, when any new user is created we are forcing user to change password on next login (using command "chage -d 0 ") .
Once password is changed on next login, we want to trigger a script which updates a DB.
Is there a way where we can call a script in RedHat or Linux password reset flow?

Thanks in advance!

Responses