Starting openvpn error: “Please enter password with the systemd-tty-ask-password-agent”












4















I've just upgraded to 15.10 (and yes I plan to go to 16.04 next time I have a little free time). I've been using openvpn to connect to a work VPN for years and years via a .ovpn config file that's always worked.



Now, however, something having to do with systemd seems to have changed the way things work. When I try to start it, I get a message broadcast out via wall:




Broadcast message from root@turandot (Sun 2016-05-01 10:25:50 CDT):



Password entry required for 'Enter Auth Username:' (PID 17284).
Please enter password with the systemd-tty-ask-password-agent tool!




I've googled around for it and found nothing that seems like a solution to the problem. What's the new way to open a VPN connection?










share|improve this question





























    4















    I've just upgraded to 15.10 (and yes I plan to go to 16.04 next time I have a little free time). I've been using openvpn to connect to a work VPN for years and years via a .ovpn config file that's always worked.



    Now, however, something having to do with systemd seems to have changed the way things work. When I try to start it, I get a message broadcast out via wall:




    Broadcast message from root@turandot (Sun 2016-05-01 10:25:50 CDT):



    Password entry required for 'Enter Auth Username:' (PID 17284).
    Please enter password with the systemd-tty-ask-password-agent tool!




    I've googled around for it and found nothing that seems like a solution to the problem. What's the new way to open a VPN connection?










    share|improve this question



























      4












      4








      4








      I've just upgraded to 15.10 (and yes I plan to go to 16.04 next time I have a little free time). I've been using openvpn to connect to a work VPN for years and years via a .ovpn config file that's always worked.



      Now, however, something having to do with systemd seems to have changed the way things work. When I try to start it, I get a message broadcast out via wall:




      Broadcast message from root@turandot (Sun 2016-05-01 10:25:50 CDT):



      Password entry required for 'Enter Auth Username:' (PID 17284).
      Please enter password with the systemd-tty-ask-password-agent tool!




      I've googled around for it and found nothing that seems like a solution to the problem. What's the new way to open a VPN connection?










      share|improve this question
















      I've just upgraded to 15.10 (and yes I plan to go to 16.04 next time I have a little free time). I've been using openvpn to connect to a work VPN for years and years via a .ovpn config file that's always worked.



      Now, however, something having to do with systemd seems to have changed the way things work. When I try to start it, I get a message broadcast out via wall:




      Broadcast message from root@turandot (Sun 2016-05-01 10:25:50 CDT):



      Password entry required for 'Enter Auth Username:' (PID 17284).
      Please enter password with the systemd-tty-ask-password-agent tool!




      I've googled around for it and found nothing that seems like a solution to the problem. What's the new way to open a VPN connection?







      15.10 password openvpn systemd






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited May 1 '16 at 15:52







      Pointy

















      asked May 1 '16 at 15:38









      PointyPointy

      66741638




      66741638






















          4 Answers
          4






          active

          oldest

          votes


















          11














          This happens since Ubuntu 15.10 uses systemd to start openvpn. Following seems to work me for me. After you start openvpn and get the error message from the terminal do the following



          sudo systemd-tty-ask-password-agent


          You will be prompted to enter your username. Now type in the same command again



          sudo systemd-tty-ask-password-agent


          This time you will be prompted to enter your password. After entering the password start the vpn connection again. For me I do it with the following command



          sudo service openvpn start


          Now it should connect successfully.






          share|improve this answer































            4














            Every time on startup, I was asked to "Enter Auth Username" and "Enter Auth Password" and I periodically got the same messages in the terminal as OP did. I can just hit Enter or type in whatever I want, it makes no difference. (Ubuntu 17.10 and 18.04)



            So instead of "reinstalling the whole OS", I just commented out the line auth-user-pass in




            /etc/openvpn/client.conf




            Now, the messages both on startup and in the terminal don't bother me anymore.






            share|improve this answer

































              3














              I know is old but, it may help someone...
              The way that I did to fix it (unfortunately I don't remember where I got the information) You can do this:



                sudo systemctl disable systemd-ask-password-wall.service
              sudo systemctl disable systemd-ask-password-wall.path
              sudo systemctl stop systemd-ask-password-wall.service
              sudo systemctl stop systemd-ask-password-wall.path
              sudo systemctl enable systemd-ask-password-console.service
              sudo systemctl start systemd-ask-password-console.service


              create a file: /etc/openvpn/pass(or wherever you want) put the passphrase and in the server.conf add, don't forget to secure pass file (sudo chmod 400 pass)



              askpass pass





              share|improve this answer































                1














                Problem fixed. After some checks inside the openvpn log I discovered that this problem was generated because the row "auth-user-pass login.txt" doesn't work. Inside the file "login.txt" there was the credential (user and passw). Trying the same configuration file on a different linux machine worked. There as no reason for a different behaviour. Simply reinstalling the whole OS the problem disappear.






                share|improve this answer























                  Your Answer








                  StackExchange.ready(function() {
                  var channelOptions = {
                  tags: "".split(" "),
                  id: "89"
                  };
                  initTagRenderer("".split(" "), "".split(" "), channelOptions);

                  StackExchange.using("externalEditor", function() {
                  // Have to fire editor after snippets, if snippets enabled
                  if (StackExchange.settings.snippets.snippetsEnabled) {
                  StackExchange.using("snippets", function() {
                  createEditor();
                  });
                  }
                  else {
                  createEditor();
                  }
                  });

                  function createEditor() {
                  StackExchange.prepareEditor({
                  heartbeatType: 'answer',
                  autoActivateHeartbeat: false,
                  convertImagesToLinks: true,
                  noModals: true,
                  showLowRepImageUploadWarning: true,
                  reputationToPostImages: 10,
                  bindNavPrevention: true,
                  postfix: "",
                  imageUploader: {
                  brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                  contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                  allowUrls: true
                  },
                  onDemand: true,
                  discardSelector: ".discard-answer"
                  ,immediatelyShowMarkdownHelp:true
                  });


                  }
                  });














                  draft saved

                  draft discarded


















                  StackExchange.ready(
                  function () {
                  StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f765951%2fstarting-openvpn-error-please-enter-password-with-the-systemd-tty-ask-password%23new-answer', 'question_page');
                  }
                  );

                  Post as a guest















                  Required, but never shown

























                  4 Answers
                  4






                  active

                  oldest

                  votes








                  4 Answers
                  4






                  active

                  oldest

                  votes









                  active

                  oldest

                  votes






                  active

                  oldest

                  votes









                  11














                  This happens since Ubuntu 15.10 uses systemd to start openvpn. Following seems to work me for me. After you start openvpn and get the error message from the terminal do the following



                  sudo systemd-tty-ask-password-agent


                  You will be prompted to enter your username. Now type in the same command again



                  sudo systemd-tty-ask-password-agent


                  This time you will be prompted to enter your password. After entering the password start the vpn connection again. For me I do it with the following command



                  sudo service openvpn start


                  Now it should connect successfully.






                  share|improve this answer




























                    11














                    This happens since Ubuntu 15.10 uses systemd to start openvpn. Following seems to work me for me. After you start openvpn and get the error message from the terminal do the following



                    sudo systemd-tty-ask-password-agent


                    You will be prompted to enter your username. Now type in the same command again



                    sudo systemd-tty-ask-password-agent


                    This time you will be prompted to enter your password. After entering the password start the vpn connection again. For me I do it with the following command



                    sudo service openvpn start


                    Now it should connect successfully.






                    share|improve this answer


























                      11












                      11








                      11







                      This happens since Ubuntu 15.10 uses systemd to start openvpn. Following seems to work me for me. After you start openvpn and get the error message from the terminal do the following



                      sudo systemd-tty-ask-password-agent


                      You will be prompted to enter your username. Now type in the same command again



                      sudo systemd-tty-ask-password-agent


                      This time you will be prompted to enter your password. After entering the password start the vpn connection again. For me I do it with the following command



                      sudo service openvpn start


                      Now it should connect successfully.






                      share|improve this answer













                      This happens since Ubuntu 15.10 uses systemd to start openvpn. Following seems to work me for me. After you start openvpn and get the error message from the terminal do the following



                      sudo systemd-tty-ask-password-agent


                      You will be prompted to enter your username. Now type in the same command again



                      sudo systemd-tty-ask-password-agent


                      This time you will be prompted to enter your password. After entering the password start the vpn connection again. For me I do it with the following command



                      sudo service openvpn start


                      Now it should connect successfully.







                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered Aug 9 '16 at 1:56









                      kurienzachkurienzach

                      13113




                      13113

























                          4














                          Every time on startup, I was asked to "Enter Auth Username" and "Enter Auth Password" and I periodically got the same messages in the terminal as OP did. I can just hit Enter or type in whatever I want, it makes no difference. (Ubuntu 17.10 and 18.04)



                          So instead of "reinstalling the whole OS", I just commented out the line auth-user-pass in




                          /etc/openvpn/client.conf




                          Now, the messages both on startup and in the terminal don't bother me anymore.






                          share|improve this answer






























                            4














                            Every time on startup, I was asked to "Enter Auth Username" and "Enter Auth Password" and I periodically got the same messages in the terminal as OP did. I can just hit Enter or type in whatever I want, it makes no difference. (Ubuntu 17.10 and 18.04)



                            So instead of "reinstalling the whole OS", I just commented out the line auth-user-pass in




                            /etc/openvpn/client.conf




                            Now, the messages both on startup and in the terminal don't bother me anymore.






                            share|improve this answer




























                              4












                              4








                              4







                              Every time on startup, I was asked to "Enter Auth Username" and "Enter Auth Password" and I periodically got the same messages in the terminal as OP did. I can just hit Enter or type in whatever I want, it makes no difference. (Ubuntu 17.10 and 18.04)



                              So instead of "reinstalling the whole OS", I just commented out the line auth-user-pass in




                              /etc/openvpn/client.conf




                              Now, the messages both on startup and in the terminal don't bother me anymore.






                              share|improve this answer















                              Every time on startup, I was asked to "Enter Auth Username" and "Enter Auth Password" and I periodically got the same messages in the terminal as OP did. I can just hit Enter or type in whatever I want, it makes no difference. (Ubuntu 17.10 and 18.04)



                              So instead of "reinstalling the whole OS", I just commented out the line auth-user-pass in




                              /etc/openvpn/client.conf




                              Now, the messages both on startup and in the terminal don't bother me anymore.







                              share|improve this answer














                              share|improve this answer



                              share|improve this answer








                              edited May 22 '18 at 9:45

























                              answered May 22 '18 at 9:39









                              ManndatManndat

                              413




                              413























                                  3














                                  I know is old but, it may help someone...
                                  The way that I did to fix it (unfortunately I don't remember where I got the information) You can do this:



                                    sudo systemctl disable systemd-ask-password-wall.service
                                  sudo systemctl disable systemd-ask-password-wall.path
                                  sudo systemctl stop systemd-ask-password-wall.service
                                  sudo systemctl stop systemd-ask-password-wall.path
                                  sudo systemctl enable systemd-ask-password-console.service
                                  sudo systemctl start systemd-ask-password-console.service


                                  create a file: /etc/openvpn/pass(or wherever you want) put the passphrase and in the server.conf add, don't forget to secure pass file (sudo chmod 400 pass)



                                  askpass pass





                                  share|improve this answer




























                                    3














                                    I know is old but, it may help someone...
                                    The way that I did to fix it (unfortunately I don't remember where I got the information) You can do this:



                                      sudo systemctl disable systemd-ask-password-wall.service
                                    sudo systemctl disable systemd-ask-password-wall.path
                                    sudo systemctl stop systemd-ask-password-wall.service
                                    sudo systemctl stop systemd-ask-password-wall.path
                                    sudo systemctl enable systemd-ask-password-console.service
                                    sudo systemctl start systemd-ask-password-console.service


                                    create a file: /etc/openvpn/pass(or wherever you want) put the passphrase and in the server.conf add, don't forget to secure pass file (sudo chmod 400 pass)



                                    askpass pass





                                    share|improve this answer


























                                      3












                                      3








                                      3







                                      I know is old but, it may help someone...
                                      The way that I did to fix it (unfortunately I don't remember where I got the information) You can do this:



                                        sudo systemctl disable systemd-ask-password-wall.service
                                      sudo systemctl disable systemd-ask-password-wall.path
                                      sudo systemctl stop systemd-ask-password-wall.service
                                      sudo systemctl stop systemd-ask-password-wall.path
                                      sudo systemctl enable systemd-ask-password-console.service
                                      sudo systemctl start systemd-ask-password-console.service


                                      create a file: /etc/openvpn/pass(or wherever you want) put the passphrase and in the server.conf add, don't forget to secure pass file (sudo chmod 400 pass)



                                      askpass pass





                                      share|improve this answer













                                      I know is old but, it may help someone...
                                      The way that I did to fix it (unfortunately I don't remember where I got the information) You can do this:



                                        sudo systemctl disable systemd-ask-password-wall.service
                                      sudo systemctl disable systemd-ask-password-wall.path
                                      sudo systemctl stop systemd-ask-password-wall.service
                                      sudo systemctl stop systemd-ask-password-wall.path
                                      sudo systemctl enable systemd-ask-password-console.service
                                      sudo systemctl start systemd-ask-password-console.service


                                      create a file: /etc/openvpn/pass(or wherever you want) put the passphrase and in the server.conf add, don't forget to secure pass file (sudo chmod 400 pass)



                                      askpass pass






                                      share|improve this answer












                                      share|improve this answer



                                      share|improve this answer










                                      answered Feb 10 at 21:57









                                      Yuri de MeloYuri de Melo

                                      512




                                      512























                                          1














                                          Problem fixed. After some checks inside the openvpn log I discovered that this problem was generated because the row "auth-user-pass login.txt" doesn't work. Inside the file "login.txt" there was the credential (user and passw). Trying the same configuration file on a different linux machine worked. There as no reason for a different behaviour. Simply reinstalling the whole OS the problem disappear.






                                          share|improve this answer




























                                            1














                                            Problem fixed. After some checks inside the openvpn log I discovered that this problem was generated because the row "auth-user-pass login.txt" doesn't work. Inside the file "login.txt" there was the credential (user and passw). Trying the same configuration file on a different linux machine worked. There as no reason for a different behaviour. Simply reinstalling the whole OS the problem disappear.






                                            share|improve this answer


























                                              1












                                              1








                                              1







                                              Problem fixed. After some checks inside the openvpn log I discovered that this problem was generated because the row "auth-user-pass login.txt" doesn't work. Inside the file "login.txt" there was the credential (user and passw). Trying the same configuration file on a different linux machine worked. There as no reason for a different behaviour. Simply reinstalling the whole OS the problem disappear.






                                              share|improve this answer













                                              Problem fixed. After some checks inside the openvpn log I discovered that this problem was generated because the row "auth-user-pass login.txt" doesn't work. Inside the file "login.txt" there was the credential (user and passw). Trying the same configuration file on a different linux machine worked. There as no reason for a different behaviour. Simply reinstalling the whole OS the problem disappear.







                                              share|improve this answer












                                              share|improve this answer



                                              share|improve this answer










                                              answered Nov 26 '17 at 19:46









                                              MaxMax

                                              191




                                              191






























                                                  draft saved

                                                  draft discarded




















































                                                  Thanks for contributing an answer to Ask Ubuntu!


                                                  • Please be sure to answer the question. Provide details and share your research!

                                                  But avoid



                                                  • Asking for help, clarification, or responding to other answers.

                                                  • Making statements based on opinion; back them up with references or personal experience.


                                                  To learn more, see our tips on writing great answers.




                                                  draft saved


                                                  draft discarded














                                                  StackExchange.ready(
                                                  function () {
                                                  StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f765951%2fstarting-openvpn-error-please-enter-password-with-the-systemd-tty-ask-password%23new-answer', 'question_page');
                                                  }
                                                  );

                                                  Post as a guest















                                                  Required, but never shown





















































                                                  Required, but never shown














                                                  Required, but never shown












                                                  Required, but never shown







                                                  Required, but never shown

































                                                  Required, but never shown














                                                  Required, but never shown












                                                  Required, but never shown







                                                  Required, but never shown







                                                  Popular posts from this blog

                                                  flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

                                                  Mangá

                                                   ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕