Lock & Unlock User in Solaris

Lock any user id in Solaris:

# passwd -l <User_ID>

Unlock any user id in Solaris:

# passwd -d <User_ID>

Unlock user id and force user to enter new password:

# passwd -df <User_ID>

Additional note:
• User id will unlock and will be force to change the password at next login

You May Also Like

1 Comment

  1. The
    passwd -d actually deletes the password as it unlocks the account according to the man page. If you want to just unlock the account then use
    passwd -u

Leave a Reply?