Unlock User ID in IBM AIX

AIX Version: 5.3.0.0

Note: Required root or sudo access to perform this function.
To unlock an user that’s locked from several unsuccessful login attempts, follow the steps below. Replace <userid> with userid that needs to be unlocked in below.

If the user remembers the old password, skip this step and go to next. Else, execute the following command to reset the password and will be asked to enter the new password twice to confirm.
# passwd <userid>
or
$ sudo passwd <userid>

Execute the following command to reset unsuccessful login attempts count
# chsec -f /etc/security/lastlog -a unsuccessful_login_count=0 -s <userid>
or
$ sudo chsec -f /etc/security/lastlog -a unsuccessful_login_count=0 -s <userid>

Execute the below command to reset the lock switch
# chuser account_locked=false <userid>
or
$ sudo chuser account_locked=false <userid>

 
 
0 (0)
Article Rating (No Votes)
Rate this article
Attachments
There are no attachments for this article.
Comments
There are no comments for this article. Be the first to post a comment.
Full Name
Email Address
Security Code Security Code
Related Articles RSS Feed
AIX 6/7 Script to create a file with commands to remove missing and failed paths
Viewed 4254 times since Tue, Jun 14, 2022
AIX www web Links
Viewed 3550 times since Fri, Apr 19, 2019
Altering LVM Configuration When a Disk is Not in ODM Anymore
Viewed 3390 times since Mon, Jun 3, 2019
Burn Image to DVD in AIX
Viewed 13726 times since Thu, Sep 20, 2018
Topics: AIX, System Admin↑ Export and import PuTTY sessions
Viewed 3267 times since Fri, Apr 19, 2019
AIX, Networking↑ Adding and deleting a static network route using the command line
Viewed 2938 times since Fri, Apr 19, 2019
How to clear/clean/erase/delete/reset network adapter configuration on AIX?
Viewed 12822 times since Thu, Nov 29, 2018
Convert to Scalable Volume Groups
Viewed 4356 times since Wed, May 30, 2018
Part 2, Monitoring memory usage (ps, sar, svmon, vmstat) and analyzing the results AIX7
Viewed 13119 times since Wed, Jun 19, 2019
HOWTO: Implement SEA Failover with Dual VIOS
Viewed 8186 times since Tue, Jun 4, 2019