4

With nmcli, I can modify VPN data like this:

nmcli con modify myvpn vpn.data 'refuse-pap = yes, user = xxx'

So I'm wondering if I can set password this way as well?

5

Yes, you can modify the value of any property with nmcli. In this case, you would use:

nmcli con modify "myvpn" vpn.secrets "password=myverysecretpassword"
  • 2
    Note that this will, of course, echo your password as you type it. – gmarmstrong Mar 6 '18 at 17:24
  • 1
    It will also store your password in your shell history. – gmarmstrong Apr 29 '18 at 15:05

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.