password expiry notification through mail?
I would like to have a password expiry notification mailed to me after every 15 days. I did look up in /etc/login.defs file and used PASS_MAX_DAYS option and put it to 15, but whenever a user's password expiry date comes he is notified with a dialog box during login. Rather than the dialog box I would like to have a mail sent on the 14th day to the administrator notifying him that passwd has to be changed. I intend to implement this script to change root passwords...Can a script written for this purpose and if so can anyone plz explain it as Im a novice....