{"id":194,"date":"2023-06-12T11:00:03","date_gmt":"2023-06-12T15:00:03","guid":{"rendered":"https:\/\/wwwdev.teach.cs.toronto.edu\/?page_id=194"},"modified":"2023-06-12T11:16:18","modified_gmt":"2023-06-12T15:16:18","slug":"passwords","status":"publish","type":"page","link":"https:\/\/wwwdev.teach.cs.toronto.edu\/using-labs\/passwords\/","title":{"rendered":"Passwords"},"content":{"rendered":"\n
Change your password using the passwd<\/strong> command (\/local\/bin\/passwd) or use Account Management<\/a>. Your new password should not be a name of a person, your own name, a word in the dictionary or anything that can be easily guessed by anyone who knows you. It should be at least eight characters long, but longer is better. A good password is very important! Our systems are on the Internet, a global network of computer systems, and there are people out there who try to break in by guessing passwords. Choosing a bad password doesn’t just compromise your account, it increases the vulnerability of the entire system.<\/p>\n\n\n\n A good password needs to be easy to remember and hard to guess. “Hard to guess” is trickier than it sounds, because people who try to guess passwords typically do so with the help of a computer, which can make thousands of guesses per second.<\/p>\n\n\n\n Avoid words or names (or variants, such as backwards words or names, or words\/names with letters substituted by numbers), in any language. Avoid personal data (like your phone number or your license plate). Don’t use UNIX or DOS commands. Don’t use any word that appears in information about you on the internet. These all produce passwords that are easy to guess.<\/p>\n\n\n\n One good technique for picking a good password is the passphrase approach. This technique is good for both shorter and longer passwords. Make up a phrase of your own that you can use (avoid lines from songs, poems, prayers, literature, or anything published), and use the first letter of each word, or the last letter, or the first and last letter, or the first two letters. Add capitalization. To make it harder to guess, you might express part of the phrase using numbers and punctuation in clever ways. For example, use punctuation or a letter according to what it means, how it sounds, or how it looks. Here are some examples:<\/p>\n\n\n\n An advantage of this technique is that it works for shorter passwords, not just long ones. A couple of pitfalls of this technique include the temptation to make your use of capitalization, numbers and punctuation either too mundane (e.g. 0 for o and 1 for i, which makes little difference for guessability), or too clever and thus too hard to remember. Also heavy use of punctuation can lead to hard-to-type passwords on devices without standard physical keyboards.<\/p>\n\n\n\n Another good technique for picking a good password is the multiple random word approach, as described in this XKCD comic strip.<\/a> This technique is good only for longer passwords. Choose a sequence of at least four completely unrelated common words in random order. The words must not be associated in any way, and there should be no meaningful order, or the password becomes easy to guess. Use a mental image to remember the words and their order. You can separate the words either by spaces, by some other separation character, or not at all. Capitalize to taste. You could put a digit or punctuation in there somewhere, e.g. at the beginning or end. Here are some examples:<\/p>\n\n\n\n The advantages of this technique are that it is simple, does not use a lot of punctuation, and it is based on common words. Pitfalls of this technique include the fact that it works only for long passwords. If your password must be short, use the Passphrase approach instead. Longer passwords can be harder to type correctly (though depending on how you type, you may find a longer password with alphabetic characters easier to type than a shorter one with lots of punctuation). Another pitfall is that people often succumb to the temptation to use related words. Unfortunately, “hot cold black white”, “dashing through the snow” or “my dog is fred” are poor passwords because they are very easy to guess. If need be, there are various sites on the internet<\/a> that will help you generate random sequences of four or five common words.<\/p>\n\n\n\n If you have many passwords and find it hard to remember them all, you might use a password keeper program or app, which stores passwords in an encrypted file on a device of some sort (e.g. a smartphone or a computer): that way you only have to remember the password keeper password. Unfortunately, the use of a password keeper program makes passwords vulnerable to bugs in the password keeper program, or in the system it runs on. But if this is the only way to remember your passwords, it may be necessary. There are many password keeper programs available: while we do not currently recommend specific ones, if you do use one, pick one that keeps the passwords well encrypted at all times. You could also write your password down on paper, but then that paper needs to be very diligently guarded. A password in a sealed envelope in a safe is perhaps OK, and may be a good idea as a contingency plan, but putting your password on a card in your wallet, or worse, on a sticky-note near your desk, is a risky idea. You might, however, write on a note in your wallet some clue or hint (that only you will understand) about how you chose your password.<\/p>\n\n\n\n How often should you change your password? You should change it often enough so that if someone has somehow captured your password, it will soon become no good to them, but not too often, or you risk forgetting it. We do not specify a specific frequency for changing your password. But if you have been using the same password for years, it would be a very good idea to change it.<\/p>\n\n\n\n You may find that the passwd<\/strong> command will not allow you to use some passwords. If the passwd command rejects your proposed new password, try a different one. “man pam_cracklib”<\/a> provides more details about the sorts of passwords it will not accept. For instance, if your password is less than ten characters long, it will insist that the password contain some combination of upper and lower case letters, digits, and other (e.g. punctuation) characters, otherwise it might reject your new password as too simple<\/em>. It will not let you choose a palindrome<\/a> for a password. It may also reject your new password if there are too many of the same character repeated consecutively. Finally, it will not accept your proposed new password if it is too similar to the old one. It defines too similar<\/em> as one of the following:<\/p>\n\n\n\n Some people like to use one password for many different sites. This may be easier to remember, but it has some real disadvantages. One problem is that if the password is captured, the person who has it gets access to all the sites, not just one. Another problem is that a site’s owners can possibly find out the password you are using on their site: do you really want them to be able to access other sites as you? A third problem is that different sites have different rules for what they consider a good password, so if you want to use the same password everywhere, you will have to find one that meets all the rules used by all the sites. But of course the problem of using different passwords for different sites is remembering them all. One approach to solve this is to use one of the techniques above, and vary that technique slightly from site to site in a way that is easy to remember. For example, if you have Google and Yahoo accounts, you could use for Google a password which contains an “e” (the last letter of the word “Google”), and for Yahoo, one that contains an “o”, but are otherwise similar. Don’t make the variation from site to site too obvious, because if someone captures one of your passwords and figures out your approach, the others will be compromised too. For this reason, something like “correct horse Google staple” is probably not your best choice.<\/p>\n\n\n\n Finally please remember, your account is for your use only, as per university and departmental policy. Please do not tell anyone else your password.<\/p>\n","protected":false},"excerpt":{"rendered":" Change your password using the passwd command (\/local\/bin\/passwd) or use Account Management. Your new password should not be a name of a person, your own name, a word in the dictionary or anything that can be easily guessed by anyone who knows you. It should be at least eight characters long, but longer is better. […]<\/p>\n","protected":false},"author":5,"featured_media":0,"parent":133,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"templates\/template-full-width.php","meta":[],"_links":{"self":[{"href":"https:\/\/wwwdev.teach.cs.toronto.edu\/wp-json\/wp\/v2\/pages\/194"}],"collection":[{"href":"https:\/\/wwwdev.teach.cs.toronto.edu\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/wwwdev.teach.cs.toronto.edu\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/wwwdev.teach.cs.toronto.edu\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/wwwdev.teach.cs.toronto.edu\/wp-json\/wp\/v2\/comments?post=194"}],"version-history":[{"count":2,"href":"https:\/\/wwwdev.teach.cs.toronto.edu\/wp-json\/wp\/v2\/pages\/194\/revisions"}],"predecessor-version":[{"id":224,"href":"https:\/\/wwwdev.teach.cs.toronto.edu\/wp-json\/wp\/v2\/pages\/194\/revisions\/224"}],"up":[{"embeddable":true,"href":"https:\/\/wwwdev.teach.cs.toronto.edu\/wp-json\/wp\/v2\/pages\/133"}],"wp:attachment":[{"href":"https:\/\/wwwdev.teach.cs.toronto.edu\/wp-json\/wp\/v2\/media?parent=194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}Pitfalls to avoid<\/h5>\n\n\n\n
Good Passwords: the Passphrase Approach<\/h5>\n\n\n\n
\"9 dollars and 8 cents is Too Much for coffee\" 9$&8ciTM4c\n \"I want a 7 caret diamond on my finger\" Iwa7^<>omf\n \"The sharp lawyer was called to the bar\" T#lwc2t|\n \"They cried out: Liberty! Equality! Fraternity!\"Tco:L!=!F!\n \"Dashing through the snow is my fave Xmas song\" ---ththsnimfXs\n \"Please may I have a second cup\" PmIha2nd|_b\n<\/pre>\n\n\n\n
Good Passwords: the Multiple Common Word Approach<\/h5>\n\n\n\n
correct horse battery staple\n\tlawyer be bird wood baby\n\tThickenSuccessTelephoneSword\n\theart-wax-indoor-pretty-5\n\t6+crown+wrap+choose+sharpen\n<\/pre>\n\n\n\n
Password Keeper Programs and other memory aids<\/h5>\n\n\n\n
How Often to Change your Password<\/h5>\n\n\n\n
Password Checks in the passwd<\/strong> Command<\/h5>\n\n\n\n
\n
One Password for Many Sites?<\/h5>\n\n\n\n