3

How I can retrieve the name and password of wifi. I am connected to a router via cable. Is there any way in ubuntu to get this information?

5

If you want to retrieve the Wifi password of a known connection. Simply go to:

/etc/NetworkManager/system-connections/

You will see all the saved connection profiles there, and you open it with root previliege:

sudo cat some-ap-profile

The password will be in the [802-11-wireless-security] section, see the psk= part:

[802-11-wireless-security]
key-mgmt=wpa-psk
auth-alg=open
psk=HERE-IS-THE-PASSWORD
2
  • Passwords in plain-text??? O.O
    – Byte Commander
    Sep 23 '15 at 10:42
  • @ByteCommander Yes, in plain-text, the only protection is the root access, but if you mount it on another system as a normal data drive...
    – P.-H. Lin
    Sep 23 '15 at 15:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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