Originally posted by: dvdt
Well, turns out this is some incorrect information.
The user's account attribute 'account_locked' is not related to the failed login attempts.
The two attributes I should be concerned with are 'loginretries' and 'unsuccessful_login_count' for my particular situation.
So turns out after I read the silly manpage for chuser:
loginretries - Defines the number of unsuccessful login attempts allowed after the last successful login before the system locks the account. The value is a decimal integer string. A zero or negative value indicates that no limit exists. Once the user's account is locked, the user will not be able to log in until the system administrator resets the user's unsuccessful_login_count attribute in the /etc/security/lastlog file to be less than the value of loginretries. To do this, enter the following:
chsec -f /etc/security/lastlog -s username -a \
unsuccessful_login_count=0
Anyhow, after some testing today and purposefully fat fingering my password I see:
# lsuser -a account_locked loginretries unsuccessful_login_count dvdt account_locked=
false loginretries=6 unsuccessful_login_count=20
It appears my script will have to compared the unsuccessful_login_count and loginretries to see which account is actually the locked.
Does anyone have some further information regarding the account_locked attribute?
#AIX-Forum