
• 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

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