Lock & Unlock User in AIX

Symptom

You want unlock or lock user in AIX operating system.

Solution

The chuser command changes the attributes and access settings for the user. This command can be used to lock and unlock a user ID, add or remove roles from a user ID, and change attributes such as the name, description, e-mail address and pager number.

• To lock a user account in AIX:

# chuser account_locked=true <user_id>

• To unlock a user account in AIX

# chuser account_locked=false <user_id>

• To verify

# lsuser <user_id>

You May Also Like

Leave a Reply?