Finding passwords that are close to expiration

Is there a file that can be queried or a report that can be run that will show users with passwords close to the expiration date?
There isn't a report that will tell you that the following users' passwords will expire in five days, for example. However, you can derive the information by running Display User Profile (DSPUSRPRF *ALL) to an outfile, look at the password last changed date and based on the password expiration interval determine which users' passwords are about to expire. Or you can run the Print User Profile (PRTUSRPRF TYPE(*PWDINFO) ) which will produce a report. That report lists the users' password expiration interval and last changed date. So if you're willing to do a bit of math, you'll be able to come up with the report that you're looking for.

==================================
MORE INFORMATION ON THIS TOPIC
==================================

The Best Web Links: tips, tutorials and more.

Search400's targeted search engine: Get relevant information on security.

Ask your systems management questions--or help out your peers by answering them--in our live discussion forums.

Check out this Search400.com Featured Topic: Top ten security tips

Visit the ITKnowledge Exchange and get answers to your security questions fast.

This was first published in August 2005