Computer 101: Lesson 6
How to change your password
Prerequisites: Lesson 2 (How to telnet to the server)
Step 1: Changing your password
Telnet to the server and login. (Or, even better, use a secure shell
program, like Putty.)
Once you are logged in, you can change your password. Type:
passwd
in all lower-case letters. Note the abbreviated spelling. You need
to spell the command exactly as shown. It has to be typed exactly
as it is spelled here.
Press the Enter key on your keyboard.
It should say "Old Password:"
Type your old password. This is the password you used to have.
Not the new password.
Press the Enter key on your keyboard once again.
It might say: "passwd: Authentication failure".
This most likely means you have typed your password incorrectly. For
example, you may have forgotten what your password is, or you may have
pressed one of the wrong keys. Or, you may have typed your new password
by mistake. (sysadmins see below).
If you type your old password correctly, you can now move on to telling
the computer your new password. Be forewarned, you must pick a good
password, otherwise
it will say "Bad password: too simple",
"Bad password: too short",
or something similar. This means you have to pick a better password.
It's good to use a combination of upper- and lower-case letters,
digits, and punctuation marks. But don't use weird keys like the
Function Keys, Escape, or the keys on the right side of the keyboard
such as Home, PgUp, etc. This would cause problems.
So, pick a new password and type it on the screen. Notice that
while you are typing your password, no characters are printed on
the screen. This is okay. Press the Enter key on your keyboard
when you're finished.
Now, you have to type the password again, to prove to the computer
that you typed it correctly. The computer is naturally skeptical
that people can do this. Type your new password, and press the Enter
key. You must type same new password twice. It must be exactly the
same both times.
It should say "Password changed".
Step 2: Changing your SMB password
Now, you need to change something called your "SMB password".
Type the following:
smbpasswd
It will say "Old SMB password:". Type your old password, that is,
the original password before you changed it.
Press the Enter key on your keyboard.
It will say "New SMB password:". Type your new password, that is,
the password you changed your old password to a few minutes ago.
The new SMB password has to be the same as your new regular password.
If your password has capital letters in it, you have to make them
capital letters every time.
Press the Enter key on your keyboard.
Enter your new password again, and press Enter.
Congratulations! You have successfully changed your password on the
server.
Write the password down in a secure location, or memorize it. If you
forget your password, you will have to ask the administrator to
reset your password for you. There is no easy way the administrator
can figure out what your password was. They will have to give you a
new one. Then you will have to do this all over again.
Step 3: Log out
This step is easy.
Type exit
Note to sysadmins: Password "authentication failure" with a valid password can
also be caused by incorrect permissions in /usr/bin/passwd (should be: -rwsr-xr-x)
or by incorrect entries in the files in /etc/pam.d.
January 19, 2003