Connman: transfer saved wifi passwords to a new system

Forum Forums New users New Users and General Questions Connman: transfer saved wifi passwords to a new system

  • This topic has 5 replies, 5 voices, and was last updated Mar 19-3:59 pm by Brian Masinick.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #79073
    Member
    blur13

      Hi!

      I have a lot of saved wifi passwords on laptop 1 (antiX 19) that I would like to transfer to laptop 2 (antiX 21). I’ve used the default Connman to enter passwords and connect to wifi networks. Couldn’t find much info online. Connman doesnt seem to be used very frequently by the linnux community. I’m guessing the passwords are stored in /var/lib/connman. Would simply copying that directory work?

      #79127
      Member
      ahoppin
        Helpful
        Up
        0
        ::

        “If you aren’t sure whether you can do this, just try it. The worst thing that can happen is that your computer could explode.” — GIMP Documentation

        #79128
        Member
        Robin
          Helpful
          Up
          0
          ::

          This is a really interesting question. Honestly, I have no idea, whether this simple c&p approach of all the connection-specific subfolders in this folder will be enough already to make them available on another system. Please let us know the result, once you tried it.

          My guess is: This will work probably. Since when looking into one of the settings files in the network specific subfolders with root privileges (sudo) in a simple texteditor like leafpad you’ll see the password and information for this specific network like Name and SSID in plain text. So it is highly probable you’ve identified the correct place where these informations are stored. I didn’t see any connman settings stored in users home direcory or its .config subdirectory. So just give it a try.

          Windows is like a submarine. Open a window and serious problems will start.

          #79131
          Member
          ModdIt
            Helpful
            Up
            0
            ::

            Sirs,
            how dare you point out that wifi setup and passwords are stored in plain text in the conmann configuration.

            Plug in a live stick on any non encrypted or non bios password protected box you can get your fingers on, you can
            quickly move settings to another computer.

            Common issue: Only recently (last year) Mozilla changed browser password storage from plain text, same goes for claws,not
            sure how secure now.

            • This reply was modified 1 year, 1 month ago by ModdIt.
            • This reply was modified 1 year, 1 month ago by ModdIt.
            #79328
            Member
            blur13
              Helpful
              Up
              0
              ::

              I tried it, no dice.

              The folders are of the form wifi_”mac address with no colons”_SSID and the settings file in each folder also have the mac address, in square brackets, in the first line. So renaming the folders and amending the settings files with the new MAC might work. There is also a “data” file in each folder that I’m not really sure what the purpose is, and it doesnt open cleanly in an editor. I envisage a bash script could rename everything in one go, but thats above my paygrade. I settled on extracting the passwords from the setting files and storing them in a simple text file for easy copy paste action, when needed.

              #79383
              Moderator
              Brian Masinick
                Helpful
                Up
                0
                ::

                @blur13: Your workaround seems reasonable; a simple data (text) file is a practical work around to copy and paste values as needed.

                Unless this is a very frequent task, it’s debatable whether using this approach or writing a script is more “efficient”. Like you said, unless you or someone else could write a script that actually works in a brief amount of time, sometimes a “scratch-pad approach” like the one you chose is a very reasonable solution.

                Congratulations on your practical way of making something work for your own purpose.

                --
                Brian Masinick

              Viewing 6 posts - 1 through 6 (of 6 total)
              • You must be logged in to reply to this topic.