Password Manager: Difference between revisions

From MozillaZine Knowledge Base
Jump to navigationJump to search
m (→‎Printing passwords: added link to firefox 3 version of password script on the-edmeisters web site)
(Intro: added images, article also applies to SM and Tbird; reorg; "see also" link to User name and password not remembered)
Line 1: Line 1:
Firefox includes a feature that allows you to save passwords you enter in web forms. This option is enabled by default, under "[[Menu differences in Windows, Linux, and Mac|Tools -> Options]] -> Security / Passwords -> Remember passwords for sites".
''This article was written for Firefox but may also apply to Mozilla Suite/SeaMonkey and Thunderbird, although menu sequences may differ.''


Note: You can choose to use a [[Master password]] to protect your passwords, which is highly recommended on a shared computer. See the linked article for details.
{{right-pic|FxRememberPW.png}}
Firefox includes a feature that allows you to save passwords.  If you enter a password in a web form and you do not see a dialog asking you if you want Firefox to remember the password,  make sure that "Remember passwords for sites" is enabled in "[[Menu differences in Windows, Linux, and Mac|Tools -> Options]] -> Security / Passwords.


== Accessing the Password Manager ==
You can also choose to use a [[Master password]] to protect your passwords, which is highly recommended if you share your computer.   See the linked article for details.
You can manage your stored passwords using the Password Manager, which you access from the Firefox menu via "[[Menu differences in Windows, Linux, and Mac|Tools -> Options]] -> Security / Password", by clicking the "Show Passwords" button. This will open the "Remember Passwords" window which lists the web sites and user names for your stored passwords and includes a "Show Passwords" button that lets you view your stored passwords. If you use a Master password then Firefox has access to the passwords as long as you are logged in to the ''Software Security Device'' ("[[Menu differences in Windows, Linux, and Mac|Tools > Options]] > Advanced > Encryption: Certificates: Security Devices: Software Security Device"). See the [[Master password]] article for details.


== Deleting passwords ==
== Using the Password Manager ==
{{right-pic|FxShowPW.png}}
 
You can manage your stored passwords using the Password Manager, which you access from the Firefox menu via "[[Menu differences in Windows, Linux, and Mac|Tools -> Options]] -> Security / Password", by clicking the "Show Passwords" button. This will open the "Remember Passwords" window which lists the web sites and usernames for your stored passwords and includes a "Show Passwords" button that lets you view your stored passwords.
 
If you use a Master password then Firefox has access to the passwords as long as you are logged in to the ''Software Security Device'' ("[[Menu differences in Windows, Linux, and Mac|Tools > Options]] > Advanced > Encryption: Certificates: Security Devices: Software Security Device"). See the [[Master password]] article for details.
 
=== Deleting passwords ===
You can delete passwords in the Password Manager by clicking the "Show Passwords" button to open the window listing the sites and user names for the remembered passwords. Highlight (select) the items that you want to delete and click the "Remove" button (or press the ''Delete'' key). Be sure not to click the "Remove All" button as that will remove all the passwords without asking for confirmation in Firefox 2 and below.
You can delete passwords in the Password Manager by clicking the "Show Passwords" button to open the window listing the sites and user names for the remembered passwords. Highlight (select) the items that you want to delete and click the "Remove" button (or press the ''Delete'' key). Be sure not to click the "Remove All" button as that will remove all the passwords without asking for confirmation in Firefox 2 and below.


== Exceptions ==
=== Exceptions ===
The Exceptions button opens a window ("Don't Remember Passwords") that lists the web domains from which you chose never to store passwords. If you later decide later that you do want to store a password from a site on the Exceptions list,  you need to remove that entry. That is done in the same way you would delete a password, by highlighting the entry and clicking the "Remove" button (or pressing the ''Delete'' key).
The Exceptions button opens a window ("Don't Remember Passwords") that lists the web domains from which you chose never to store passwords. If you later decide later that you do want to store a password from a site on the Exceptions list,  you need to remove that entry. That is done in the same way you would delete a password, by highlighting the entry and clicking the "Remove" button (or pressing the ''Delete'' key).


== Backup and restore passwords ==
== Troubleshooting ==
If you do not see any passwords in the Password Manager window (Show Passwords) then your passwords are probably lost.
If you still see encrypted names and passwords in the file [[signons2.txt]] then the likely cause is a wrong or corrupted [[key3.db]] file.
If you can't add new passwords but still see your old passwords in the Password Manager window then use the Password Exporter extension to export your current passwords and delete both [[key3.db]] and [[signons2.txt]] in the [[Profile folder]]. You can also do that if you lost your Master password and the suggestions in the [[Master password]] article didn't work. You need to set a new Master password after deleting the file ''key3.db''.
 
== Backing up and restoring passwords ==
You can make a backup copy of [[key3.db]] (Master Password / Encryption key) and [[signons2.txt]] (encrypted names and passwords). Firefox 3 will use [[signons3.txt]] to store the passwords. See: [[Profile folder - Firefox]] and [[Profile backup]] for additional information.
You can make a backup copy of [[key3.db]] (Master Password / Encryption key) and [[signons2.txt]] (encrypted names and passwords). Firefox 3 will use [[signons3.txt]] to store the passwords. See: [[Profile folder - Firefox]] and [[Profile backup]] for additional information.


Line 61: Line 73:
</tbody></table></pre>
</tbody></table></pre>


== Troubleshooting ==
If you do not see any passwords in the Password Manager window (Show Passwords) then your passwords are probably lost.
If you still see encrypted names and passwords in the file [[signons2.txt]] then the likely cause is a wrong or corrupted [[key3.db]] file.
If you can't add new passwords but still see your old passwords in the Password Manager window then use the Password Exporter extension to export your current passwords and delete both [[key3.db]] and [[signons2.txt]] in the [[Profile folder]]. You can also do that if you lost your Master password and [[Master password]] didn't work. You need to set a new Master password after deleting the file ''key3.db''.


==See also==
==See also==
* [[User name and password not remembered]]
* [[signons.txt]] (Firefox 2.0 and 2.0.0.1 and Firefox 1.5.0.9 and below)
* [[signons.txt]] (Firefox 2.0 and 2.0.0.1 and Firefox 1.5.0.9 and below)
* [[signons3.txt]] (Firefox 3)
* [[signons3.txt]] (Firefox 3)

Revision as of 00:39, 18 January 2008

This article was written for Firefox but may also apply to Mozilla Suite/SeaMonkey and Thunderbird, although menu sequences may differ.

Firefox includes a feature that allows you to save passwords. If you enter a password in a web form and you do not see a dialog asking you if you want Firefox to remember the password, make sure that "Remember passwords for sites" is enabled in "Tools -> Options -> Security / Passwords.

You can also choose to use a Master password to protect your passwords, which is highly recommended if you share your computer. See the linked article for details.

Using the Password Manager

You can manage your stored passwords using the Password Manager, which you access from the Firefox menu via "Tools -> Options -> Security / Password", by clicking the "Show Passwords" button. This will open the "Remember Passwords" window which lists the web sites and usernames for your stored passwords and includes a "Show Passwords" button that lets you view your stored passwords.

If you use a Master password then Firefox has access to the passwords as long as you are logged in to the Software Security Device ("Tools > Options > Advanced > Encryption: Certificates: Security Devices: Software Security Device"). See the Master password article for details.

Deleting passwords

You can delete passwords in the Password Manager by clicking the "Show Passwords" button to open the window listing the sites and user names for the remembered passwords. Highlight (select) the items that you want to delete and click the "Remove" button (or press the Delete key). Be sure not to click the "Remove All" button as that will remove all the passwords without asking for confirmation in Firefox 2 and below.

Exceptions

The Exceptions button opens a window ("Don't Remember Passwords") that lists the web domains from which you chose never to store passwords. If you later decide later that you do want to store a password from a site on the Exceptions list, you need to remove that entry. That is done in the same way you would delete a password, by highlighting the entry and clicking the "Remove" button (or pressing the Delete key).

Troubleshooting

If you do not see any passwords in the Password Manager window (Show Passwords) then your passwords are probably lost. If you still see encrypted names and passwords in the file signons2.txt then the likely cause is a wrong or corrupted key3.db file. If you can't add new passwords but still see your old passwords in the Password Manager window then use the Password Exporter extension to export your current passwords and delete both key3.db and signons2.txt in the Profile folder. You can also do that if you lost your Master password and the suggestions in the Master password article didn't work. You need to set a new Master password after deleting the file key3.db.

Backing up and restoring passwords

You can make a backup copy of key3.db (Master Password / Encryption key) and signons2.txt (encrypted names and passwords). Firefox 3 will use signons3.txt to store the passwords. See: Profile folder - Firefox and Profile backup for additional information.

You can also use the Password Exporter extension to back up your passwords.

Printing passwords

If you want a printed copy of the password then look at this forum thread and also read this web page (scroll down to #4).

This is the Firefox 3 replacement code (table header and JavaScript) for the code of edmullen's site. You can find the complete file with the Firefox 3 code on: the-edmeister's Firefox Informational Website.

<table style="empty-cells: show; background-color: rgb(221, 255, 221);" border="1" cellspacing="0">
<tbody><tr style="background-color: rgb(204, 204, 255);">
<td>
<b>Host</b>
</td>
<td>
<b>User name</b>
</td>
<td>
<b>Password</b>
</td>
<td>
<b>Submit URL</b>
</td>
</tr>

<script type="text/javascript"> // modified by dickvl for Firefox 3
<!--
   netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
  var passwordmanager = Components.classes["@mozilla.org/login-manager;1"]
.getService(Components.interfaces.nsILoginManager);
  // loads signons into table
  var signons = passwordmanager.getAllLogins({});
  for (i=0;i<signons.length;i++) {
   try {
      var host = signons[i].hostname;
      var user = signons[i].username;
      var password = signons[i].password;
      var submiturl = signons[i].formSubmitURL;
      if (user == ""){user = "<br>";}
      document.write("  <tr>\n    <td> " + host + " </td>\n    <td> " + user + " </td>\n    <td> " +
 password + "  </td>\n    <td> " + submiturl + " </td>\n  </tr>\n");
    } catch(e) {
      /* An entry is corrupt. Go to next element. */
    }
  }
-->
</script>
</tbody></table>


See also

External links