Changing your password

Updated: April 19, 2023

To change your password, use the passwd utility. You're prompted for your current password and then for a new one. You have to repeat the new password to guard against typographical errors.

Depending on the password rules that the system administrator has set, passwd may require that you enter a password of a certain length or one that contains certain elements (such as a combination of letters, numbers, and punctuation). If the password you select doesn't meet the criteria, passwd asks you to choose another.

If other users can access your system (e.g., it's connected to the Internet, has a dial-in modem, or is physically accessible by others), be sure to choose a password that will secure your account from unauthorized use. You should choose passwords that:

For more information on system security, see Securing Your System.