Get password prompt in the terminal/shell

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite












When I am connecting a Mac through ssh, I don't have any GUI.



However, for some of the commands like security find-internet-password, there will be a GUI prompt for the admin's password. How can I have the prompt in the shell instead of GUI?










share|improve this question





















  • is security the only command you have issues with?
    – Mark
    5 hours ago










  • @Mark no, also for some node application. if you start an application from shell which listens to 0.0.0.0:port, there will be a prompt ask you do you want this application assess internet..
    – iLeoDo
    5 hours ago














up vote
2
down vote

favorite












When I am connecting a Mac through ssh, I don't have any GUI.



However, for some of the commands like security find-internet-password, there will be a GUI prompt for the admin's password. How can I have the prompt in the shell instead of GUI?










share|improve this question





















  • is security the only command you have issues with?
    – Mark
    5 hours ago










  • @Mark no, also for some node application. if you start an application from shell which listens to 0.0.0.0:port, there will be a prompt ask you do you want this application assess internet..
    – iLeoDo
    5 hours ago












up vote
2
down vote

favorite









up vote
2
down vote

favorite











When I am connecting a Mac through ssh, I don't have any GUI.



However, for some of the commands like security find-internet-password, there will be a GUI prompt for the admin's password. How can I have the prompt in the shell instead of GUI?










share|improve this question













When I am connecting a Mac through ssh, I don't have any GUI.



However, for some of the commands like security find-internet-password, there will be a GUI prompt for the admin's password. How can I have the prompt in the shell instead of GUI?







security ui






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 5 hours ago









iLeoDo

262




262











  • is security the only command you have issues with?
    – Mark
    5 hours ago










  • @Mark no, also for some node application. if you start an application from shell which listens to 0.0.0.0:port, there will be a prompt ask you do you want this application assess internet..
    – iLeoDo
    5 hours ago
















  • is security the only command you have issues with?
    – Mark
    5 hours ago










  • @Mark no, also for some node application. if you start an application from shell which listens to 0.0.0.0:port, there will be a prompt ask you do you want this application assess internet..
    – iLeoDo
    5 hours ago















is security the only command you have issues with?
– Mark
5 hours ago




is security the only command you have issues with?
– Mark
5 hours ago












@Mark no, also for some node application. if you start an application from shell which listens to 0.0.0.0:port, there will be a prompt ask you do you want this application assess internet..
– iLeoDo
5 hours ago




@Mark no, also for some node application. if you start an application from shell which listens to 0.0.0.0:port, there will be a prompt ask you do you want this application assess internet..
– iLeoDo
5 hours ago










2 Answers
2






active

oldest

votes

















up vote
3
down vote













I use this in Terminal



sudo security find-internet-password -gs www.facebook.com


that asks me to confirm with my Admin Password



then it delivers.






share|improve this answer



























    up vote
    0
    down vote













    This is by design, the security interface requires human interaction (well, GUI interaction). Normal keychain usage is done using an API which allows the user to grant the requesting application permanent access to the stored data for that request.






    share|improve this answer




















      Your Answer







      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "118"
      ;
      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',
      convertImagesToLinks: false,
      noModals: false,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













       

      draft saved


      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fapple.stackexchange.com%2fquestions%2f336948%2fget-password-prompt-in-the-terminal-shell%23new-answer', 'question_page');

      );

      Post as a guest






























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      3
      down vote













      I use this in Terminal



      sudo security find-internet-password -gs www.facebook.com


      that asks me to confirm with my Admin Password



      then it delivers.






      share|improve this answer
























        up vote
        3
        down vote













        I use this in Terminal



        sudo security find-internet-password -gs www.facebook.com


        that asks me to confirm with my Admin Password



        then it delivers.






        share|improve this answer






















          up vote
          3
          down vote










          up vote
          3
          down vote









          I use this in Terminal



          sudo security find-internet-password -gs www.facebook.com


          that asks me to confirm with my Admin Password



          then it delivers.






          share|improve this answer












          I use this in Terminal



          sudo security find-internet-password -gs www.facebook.com


          that asks me to confirm with my Admin Password



          then it delivers.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 5 hours ago









          Buscar웃

          31.8k539105




          31.8k539105






















              up vote
              0
              down vote













              This is by design, the security interface requires human interaction (well, GUI interaction). Normal keychain usage is done using an API which allows the user to grant the requesting application permanent access to the stored data for that request.






              share|improve this answer
























                up vote
                0
                down vote













                This is by design, the security interface requires human interaction (well, GUI interaction). Normal keychain usage is done using an API which allows the user to grant the requesting application permanent access to the stored data for that request.






                share|improve this answer






















                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  This is by design, the security interface requires human interaction (well, GUI interaction). Normal keychain usage is done using an API which allows the user to grant the requesting application permanent access to the stored data for that request.






                  share|improve this answer












                  This is by design, the security interface requires human interaction (well, GUI interaction). Normal keychain usage is done using an API which allows the user to grant the requesting application permanent access to the stored data for that request.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 35 mins ago









                  John Keates

                  1,765410




                  1,765410



























                       

                      draft saved


                      draft discarded















































                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fapple.stackexchange.com%2fquestions%2f336948%2fget-password-prompt-in-the-terminal-shell%23new-answer', 'question_page');

                      );

                      Post as a guest













































































                      Comments

                      Popular posts from this blog

                      What does second last employer means? [closed]

                      Installing NextGIS Connect into QGIS 3?

                      One-line joke