Update: Shell script to auto-change password before password expiry

From: Gold Sun (goldsun8@yahoo.com.sg)
Date: Mon Apr 25 2005 - 11:15:22 EDT


Hi,
 
Missed out one criteria : that the password must not be
something in clear text stored anywhere in the system
otherwise this will not meet the security requirements.
 
I just have a look at the crontab (left behind by the previous
administrator) & believe it's one of the sendmail job that
could not send the report out :
 
1 * * * * /usr/local/mrtg/95.pl
5 12 * * * /etc/init.d/sendmail start; /usr/local/mrtg/customer/sendmail.sh;sleep 10;/etc/init.d/sendmail stop
# 0 10 1 * * /etc/init.d/sendmail start;cat /dev/null | mailx -s "Root Password on ab01bnf01ist5s5 about to expire, please escalate" gwasysop@abc.com;sleep 10;/etc/init.d/sendmail stop
1 0 1 * * /etc/init.d/sendmail start; /usr/local/mrtg/customer/mailreport.sh;sleep 10;/etc/init.d/sendmail stop

 
Thanks for any inputs
G Sun

Gold Sun <goldsun8@yahoo.com.sg> wrote:
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!

 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