Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have /home on a seperate partition, so every time when I do a new install of Ubuntu, I take my program settings with me. This works fine for most programs, but I still have to retype my Wi-Fi passwords after each install.

Instead, I'd like to take my old passwords with me as well. How can I get that done?

share|improve this question
up vote 1 down vote accepted

I believe you can save the contents of /etc/NetworkManager/system-connections and then put them back into place after your install. You should have one file per connection and it will have your password in plaintext, so be careful with what you do with the files.

I have /home on a separate partition too, but I always back-up /etc too as there are things in there I don't want to redo, like my autofs setup.

share|improve this answer
Thanks, this sounds like a good way to go - either copy and restore /etc/NetworkManager/system-connections or backup /etc. – Exeleration-G Nov 19 '12 at 8:46
Be careful restoring all of /etc, I keep it because it's nice when you remember things like this that you want back. There's some stuff in there that shouldn't be copied back I suspect. – mfisch Nov 19 '12 at 14:37

Your Answer


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.