For the sake of your system's security, SunOS requires the use of a password for your system. Changing your password several times a year helps to ensure that you are the only user with easy access to your account. If you believe someone has used your account without your permission, change your password immediately.
Choose a password that you can remember without writing it down. A password that you can't remember is worse than one that is too easily guessed.
Choose a password that is at least six characters long and contains at least one number.
Don't use your own name or initials or the name or initials of your spouse.
Don't use the names of pets or objects common to your interests.
Don't use all capital letters.
If you have more than one account, don't use the same password for every account.
Although you can use any character in your password, some characters, such as Ctrl-C, Ctrl-Z, Ctrl-U, Ctrl-S, Esc, Tab, and in some cases # and @ can be interpreted by the terminal as signals. These characters should be avoided. The terminal may interpret these as signals rather than text characters, and this would preclude you from properly typing in your password.
$ passwd Changing password for hankw on worker Old password: New password: Retype new password: $
When the system prompts you for Old Password:, type your current password.
(If no password is currently assigned to your account, the system will skip the Old Password: prompt.) Note that the system does not echo (display) your password on the screen. This prevents other users from discovering your password.
When the system prompts you for New Password:, type the password you've decided on.
Again, the password you type does not echo on the screen.
At the final prompt, Retype new password:, type your new password a second time.
This is to verify that you typed exactly what you intended to type.
If you don't enter your password precisely the way you did at the previous prompt, the system refuses to change your password and responds with Sorry. If this happens repeatedly, contact your system administrator to get a new password.
If your system is using password aging (implemented with options to the passwd command), your password may have either a maximum, or a maximum and minimum lifespan. The lifespan of your password is set by your system administrator.
When the maturity date (or maximum age) of your password is reached, you are prompted to change your password. This occurs when you log in. The following is displayed:
Your password has expired. Choose a new one.
The system then automatically runs the passwd program and prompts you for a new password.
Sorry, less than 2 weeks since the last change.
$ passwd -d username 2-14-92 14 60
The display shows, in order, the date the current password was created, the minimum age, and the maximum age. (This information appears only if password aging has been implemented.)
For more information on passwd(1) and password aging, refer to the man Pages(1): User Commands.