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 lspath Missing path
Viewed 11167 times since Fri, Oct 5, 2018
AIX Errpt - Diag - Alog
Viewed 4481 times since Wed, Mar 20, 2019
Problem on resizing volume group on AIX 0516-1714, 0516-792, 0516-787, and 0516-404
Viewed 3495 times since Fri, Jul 6, 2018
AIX 7.2 running on my Macbook?
Viewed 13694 times since Mon, Jun 3, 2019
How to upgrade TL and SP in AIX using alternate disk(alt_disk_copy)
Viewed 13772 times since Sun, Jun 30, 2019
Changing ’defined’ or ’missing’ hard disk states to ’Available’ in IBM Smart Analytics System for AIX environment
Viewed 3001 times since Thu, Sep 20, 2018
0516-787 extendlv: Maximum allocation for logical volume error
Viewed 10072 times since Tue, Mar 12, 2019
Find out which port the daemon is using on AIX OS. (similar like command netstat -anp for Linux)
Viewed 12628 times since Thu, Feb 21, 2019
Installing a Interim Fix (APAR IV16587)
Viewed 3633 times since Tue, Jul 17, 2018
Mirroring the rootvg Volume Group for AIX 4.1/4.2
Viewed 3746 times since Mon, May 21, 2018