Solaris Advanced User's Guide

Changing Your Password

To change your personal password, type the passwd command:

$ passwd
passwd:  Changing password for user2
Enter login password: 
New password: 
Re-enter new password: 
passwd (SYSTEM): passwd successfully changed for user2
  1. When the system prompts you for Enter login password:, type your current password.

    If no password is currently assigned to your account, the system skips the Old Password: prompt.

    The system does not echo (display) your password on the screen and thereby prevents other users from discovering your password.

  2. When the system prompts you for New Password:, type your new password.

    Again, the password you type does not echo on the screen.

  3. At the final prompt, Re-enter new password:, type your new password a second time.

    Your system verifies that you typed the password you intended to type.

    If you do not type your password precisely the way you did at the previous prompt, the system refuses to change your password and responds with the following message:

    passwd: They don't match; try again.

    If you receive this message repeatedly, contact your system administrator to get a new password.

    Note –

    Passwords containing fewer than six characters are not allowed. Also, a new password must differ from the old password by at least three characters.