Score:0

Save VPN password for all users using nmcli

la flag

Is it possible to save a VPN password using nmcli and make it available to all users?

nmcli con modify vpnname vpn.secrets "password=mypassword" does the job, but only for current user.

The only way I found so far is by modifying this setting through the graphic interface, in the "Identity" tab of the VPN connection:

enter image description here

I'm using Ubuntu 22.04.01.

Score:1
cc flag

To achieve the same result without going through the GUI, you can manually add a section in the configuration file of that VPN connection:

/etc/NetworkManager/system-connections/vpn_connection_name_

[vpn-secrets]
password=password
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.