Where does GNOME Network Manager store passwords

gnome3networkmanageropenvpnSecurity

In Network Manager, under the Identity tab, I can enter a username and password for my OpenVPN connection. I can also enter a password for the "User private key".

Both password fields have the following options:

  • Store the password only for this user
  • Store the password for all users
  • Ask for this password every time
  • The password is not required

If I choose to store the password ("for this user" or "for all users") where is it stored?

Best Answer

Go to the /etc/NetworkManager/system-connections/ directory, here all the connection details are saved.

And use the cat command or any text editor as root to view the saved passwords. There should be a security related entry, like [vpn-secrets] or [wifi-security].

[wifi-security]
auth-alg=open
group=
key-mgmt=wpa-psk
pairwise=
psk=sat004321

For VPN,

[vpn-secrets] password=arnab002

The string after psk= is the password. I think it's the same location for all users.

Related Question