onw7two99: > [user@WorkAppVM ~]$ > PWDFILE="/rw/config/NM-system-connections/secrets/passwd-file.txt"
> If I run the same command as root user in the AppVM I get an error > message and can't connect via VPN. > > bash-5.0# nmcli connection up MyOfficeVPN passwd-file $PWDFILE > A password is required to connect to 'MyOfficeVPN'. > Warning: password for 'vpn.secrets.gateway' not given in 'passwd-file' > and nmcli cannot ask witho> > Error: Connection activation failed: No valid secrets > <h0' to get more details. > > It seems that the password is not fetched from the text file. > > It is only working when launching the vpn via nmcli using the > non-priviliged user terminal, because the password has been saved in the > GUI. > > QUESTION: > > What is wrong that the password will not be used from the password-file? Could be because $PWDFILE is defined in your regular user environment, so the root environment might not know about it. Try pathing it out in the nmcli command instead of using an environment variable. -- You received this message because you are subscribed to the Google Groups "qubes-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-users/929a855f-08be-ea29-df11-97b0ef30732a%40danwin1210.me.
