Just follow the prompts by entering your old password and then your new password twice.
Here's an example:
$ passwd
Changing password for yourname.
(current) UNIX password:
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Use wisely ;)