3.8. Setting Your Password: passwdAfter you first log in to a Linux system, it's a good idea to change your initial password if you didn't create your own account (someone set it, so you know at least one other person knows it). A password should generally be at least six letters long, and should not be a word from a dictionary or a proper noun. This is because it's quite easy for someone to set up a computer program that runs through all the words in a standard dictionary and tries them as your password. To set your password, use the passwd utility (Figure 3-5).
Here's an example, with the passwords shown. Note that you wouldn't normally be able to see the passwords, as Linux turns off the keyboard echo when you enter them. $ passwd Changing password for user ables. Changing password for ables (current) UNIX password: penguin ... poor choice. New UNIX password: GWK145W ... better choice. Retype new UNIX password: GWK145W passwd: all authentication tokens updated successfully. $ _ Yes, in many current versions of Linux, the passwd utility really does print the first message twice and refer to the password as a "UNIX" password. If you forget your password, the only thing to do is to contact your system administrator and ask for a new password. If you can become the administrator, you can set a new password without knowing the old password. |