Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

password expire

Status
Not open for further replies.

Mag0007

MIS
Feb 15, 2005
829
US
How can I view a ALL user's password expiration information?

lsuser -f -a expires ALL | pg

is this the correct way of doing it?


Also, how can I check if its going to expire in less then 60 days?

TIA!
 
The "expires" attribute in /etc/security/user is for specifying a particular date and time for a user's account to expire. If set, the account will be locked (not just password expired) after such date and time.

You can script what you want, though.

lsuser -a maxage ALL

will give you the maximum password in weeks for each user.

lssec -f /etc/security/passwd -s <username> -a lastupdate

will give you the time, in seconds since the epoch, for <username>.

I'm short on time right now, but can write something up in perl later, if you need it.

Rod Knowlton
IBM Certified Advanced Technical Expert pSeries and AIX 5L
CompTIA Linux+
CompTIA Security+

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top