To check account properties you use the command lsuser and specify what property you want to see.
Checking if an account is locked
root@aix:/ # lsuser -a account_locked emerson
To calculate when was the last time an user logged in to the server, you will need to convert the time displayed. Use the command below to convert.
root@aix:/ # lsuser -a time_last_login emerson
root@aix:/ # perl -we ‘print(my $time = localtime 1279036180, “\n”)’
Tue Jul 13 10:49:40 2010
3004-303 There have been too many unsuccessful login attempts; please see the system administrator
If your user can’t login and is receiving this error message, you need to reset his unsuccessful login attemps in the user’s account.
Check his unsuccessful login counter with lsuser
root@aix:/ # /usr/sbin/lsuser -a unsuccessful_login_count <username>
Then reset the counter with chsec
root@aix:/ # /usr/bin/chsec -f /etc/security/lastlog -a unsuccessful_login_count=0 -s <username>