Shell script to auto-change password before password expiry

From: Gold Sun (goldsun8@yahoo.com.sg)
Date: Mon Apr 25 2005 - 04:13:23 EDT


Hi,
 
We have a job that would fail to send reports out if the root
password expires :
 
 # passwd -s root
root PS 03/23/05 0 30 21

Above shows password will expire 30 days from 23 Mar.
 
So we have to manually change it by "passwd root" &
this will give us another 30 days.
 
Would anyone care to contribute a shell script that will
help reset the password every 28 days (as February has
28 days) which I can put in the crontab or the script can
checks for password expiry every day & the expiry is
less than 2 days away, the script will change it.
 
I will summarize.
 
Thanks
G Sun
 

 Yahoo! Mobile
- Download the latest ringtones, games, and more!
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:30:35 EDT