Hi Russ,
we use this script. It write in a file the username and number of days for password expiration.
Hope this help.
# This script create a file named /etc/umios.
# The content of this file is the user login name and the
# number of days to password expiration
> /etc/umios
chmod 644 /etc/umios
# "ahora" is "now". This variable get the actual time
ahora=`/usr/contrib/bin/perl -e 'printf "%d\n",time()'`
# We have Trusted System activated, so we need to see
# user data in this directories estructres
# /tcb/files/auth/$first_leter_username/$username
# For all users, the $i get the user name
for i in `cat /etc/passwd | cut -d":" -f1`
do
# "letra" is the first leter of user name
letra=`echo $i|cut -c1`
# "ultimocambio" is lastchange. This variable get the time of last password change
ultimocambio=`cat /tcb/files/auth/$letra/$i | awk -F "u_succhg#" ' {print $2}' | cut -d":" -f1
| grep -v ^$`
# We create all users with 180 days of password expiration time, so
# we rest 180 days minus today mnus last change of password, and
# we get the number of days to next password change
let "dias=180 - (( $ahora - $ultimocambio ) / 86400) "
echo $i"|"$dias >> /etc/umios
done
========
I hope that all is clear "ahora" (sorry, now).
ppviso