password expiry notification through mail?
Hi Everyone,
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.... Thanks Danish |
The key to your problem is either chage
or the 4th and 5th field in /etc/shadow Read man chage and man 5 shadow for details. Cheers, Tink |
All times are GMT -5. The time now is 07:01 PM. |