You can check if a UNIX user is locked with the passwd -s command, followed by the username. If the letters LK appear at the start of the output, after the username, the user is locked:
Solaris root user > passwd -s oracle
oracle LK 06/15/12 7 56 7
Solaris root user >
You can unlock a user with the passwd -u command, followed by the username:
Solaris root user > passwd -u oracle
passwd: password information changed for oracle
Solaris root user>
After unlocking the user, the letters PS replace the letters LK in the output of the passwd -s command. This simply means that the user has a password:
Solaris root user > passwd -s oracle
oracle PS 06/15/12 7 56 7
Solaris root user >