Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I recently migrated from Windows7 to Kubuntu 10.0.4. In many ways, I'm loving the change. (I never knew it could be such a seemless process to write/test scripts!)

One of the few things that is causing me any hangup is that none of the passwords that were saved in my browser are available (obviously, since it's a completely separate installation). Is it possible to export my passwords from the Windows instance of Chrome and then import them into the Linux version?

share|improve this question

4 Answers 4

up vote 5 down vote accepted

As Neal said, the folder User Data is the one to look for. If you want a software solution try the extension Lastpass (or at the Google site). It allows you to save and restore password in Google Chrome as well as in Firefox, IE and Safari.

share|improve this answer
    
I've been using LastPass for 2 years and it works great! Got it on 6 browsers on 4 different OS's –  TheLQ Jul 17 '10 at 17:10
    
Lastpass looks perfect! Thanks! –  Jeffrey Blake Jul 17 '10 at 21:17
    
It seems that lastpass is not longer able to export the passwords to chrome -.- Is there already a new solution? –  MartinVonMartinsgrün Mar 2 '12 at 7:38
    
@mmm... This is almost a month after you asked, but I wanted to answer you: I don't think you need to export the passwords with Lastpass. Just install the extension onto whichever browser you use and they will be available. From any system. The passwords are stored in their encrypted vault, so you don't have to worry about any of that on your end. –  Jeffrey Blake Mar 30 '12 at 17:33

You can also use this standalone tool called chromepass http://www.nirsoft.net/utils/chromepass.html

ChromePass is a small password recovery tool that allows you to view the user names and passwords stored by Google Chrome Web browser.

There is a option to export into your keepass password manager too.

share|improve this answer
    
Perfect! I'm in the process of migrating to KeePass and this is just what I need. Thanks! –  Tim Lewis Aug 20 '13 at 17:28

You could try XMarks.

I'm fairly sure that if you just copied the profile (ie the stuff in C:\Users\Username\AppData\Local\Google\Chrome\User Data\Default)from Windows to Linux, you would get everything working correctly, without any export/ import.

share|improve this answer
    
+1 for identifying the file I'd need. –  Jeffrey Blake Jul 17 '10 at 21:17
    
The exact file where the passwords are stored is Login Data. –  chris-l Aug 26 '13 at 17:01
    
Latest versions of chrome don't store the actual passwords in that file anymore. On windows it uses the system credential storage and on Linux the system keyring is used. –  ccpizza Nov 12 '13 at 23:09
    
xmarks does not synchronize passwords anymore, gotta use lastpass –  arod Nov 29 '13 at 23:38

The recipe below is a Linux-only solution and was taken from this blog post.

To export your passwords to a human readable text file:

  1. Connect to your Google Account in Chrome Settings so that your passwords are synched with the Google cloud storage. Make sure that you have ticked Passwords in Advanced Sync Settings.
  2. Wait for a while until the data is synched, and then close all the Chrome windows.
  3. Start Chrome/Chromium using one of the command line below. This will launch Chrome with a custom profile folder without affecting your current chrome profile.

    ## for Chrome:
    google-chrome --user-data-dir=/tmp/chrome-tmp --password-store=basic`
    
    ## for Chromium:
    chromium --user-data-dir=/tmp/chrome-tmp --password-store=basic`
    
  4. Setup Google Synching for the new temporary profile and wait three or four minutes until everything is synced from the cloud, i.e. your bookmarks appear, extensions show up, the theme is applied, etc. Verify that the passwords are restored from the Google cloud by looking under Settings → Personal Stuff → Manage Saved Passwords. If they do not appear, then wait a couple of minutes more. Note: the fastest way to get to the stored passwords page in settings is to type password in the Search box in the top right.

  5. Exit Chrome.
  6. Next, open a terminal and change to the newly created Chrome profile:

    cd /tmp/chrome-tmp/Default
    
  7. Now, open the Login Data SQLite database using the sqlite3 command line utility and dump the logins table. For this to work, you need to have sqlite3 installed on your system.

    sqlite3 'Login Data'
    
  8. Next, at the SQLite prompt enter the commands below. For help on available commands type .help at the prompt.

    .mode csv               # other options are `html', `tabs', etc.
    .headers on
    .separator ","
    .output chrome_passwords.csv
    select * from logins;
    .exit
    

Now you should have a file named chrome_passwords.csv containing all your Chrome passwords. To open it with LibreOffice, type:

    libreoffice --calc chrome_passwords.csv
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.