Tuesday, August 30, 2011

chsec - reset the failed login count for a user in IBM AIX

To reset the "unsuccessful_login_count" variable of a user in IBM AIX

# chsec -f /etc/security/lastlog -a "unsuccessful_login_count=0" -s user 

Example:


chsec -f /etc/security/lastlog -a "unsuccessful_login_count=0" -s user