#!/bin/ksh # assign a new promptcat password. # the password needs to be changed more often than every 90 days. # this script should be scheduled accordingly. # it also notifies appropriate personnel of the new password. # definitions prodpath=/usr/local/bin promptcatpath=/m1/local/promptcat pwfile=promptcat.ini msgfile=pwnotify.txt # get the old password from the ini file exec < $prodpath/$pwfile read oldpw # get a new password newpw=`$prodpath/pwgen.pl` # record the new password echo "$newpw" > $prodpath/$pwfile # copy the file to the promptcat directory cp $prodpath/$pwfile $promptcatpath/$pwfile # change the password at the promptcat ftp site ftp -n < $msgfile echo $newpw >> $msgfile mail roy.zimmer@wmich.edu < $msgfile mail keith.kelley@wmich.edu < $msgfile