UNIX cmd to check for non expiry type password

Hi,

Here's the version of unix that we are working on.

> uname -a
AIX yyyyyyyy 1 6 00F613E24C00
[kmani00]@[xxxxxxxx]:[yyyyyyyy]on(cluster303)/iishomea/kmani00->

i have application id: aaabbb

Now i need to check whether the password for the application id set to non expiry type or not.

Moreover, with that unix command, can one check that or only admin team can help us?

thanks
Krishnakanth

Moderator comments were removed during original forum migration.

Take a look at the lsuser command. Using the -f switch, it lists all the attributes for a user account.

OK,
To check for user password expiration on AIX you run
lsuser -a maxage <username> , If the maxage value is zero, then the password is set not to expire and if the value is non-zero, that means it is set to expire in that many week(s).

Note: A nonzero value indicate no. of weeks.