Permission Denied as root when connecting BluetoothSocket with Bluez 5.43

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





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;







up vote
1
down vote

favorite












I've been trying to get bluetooth working on my Raspberry Pi 1 Model B+ running Raspbian Stretch Lite 4.14 with a 3rd party USB bluetooth dongle.



I installed Bluez 5.43 for python 2.7, and was able to pair with another device using bluetoothctl. However, when I then try to connect a BluetoothSocket to that device, I get bluetooth.btcommon.BluetoothError: (13, 'Permission denied').



I found this thread with the same issue, and it was resolved by running sudo python script.py.



However, when I do the same and run the python script with sudo, the program still fails with the same error.



This is my python script. It is Python2.7 running on Raspbian Stretch Lite 4.14 using Bluez 5.43.







share|improve this question



























    up vote
    1
    down vote

    favorite












    I've been trying to get bluetooth working on my Raspberry Pi 1 Model B+ running Raspbian Stretch Lite 4.14 with a 3rd party USB bluetooth dongle.



    I installed Bluez 5.43 for python 2.7, and was able to pair with another device using bluetoothctl. However, when I then try to connect a BluetoothSocket to that device, I get bluetooth.btcommon.BluetoothError: (13, 'Permission denied').



    I found this thread with the same issue, and it was resolved by running sudo python script.py.



    However, when I do the same and run the python script with sudo, the program still fails with the same error.



    This is my python script. It is Python2.7 running on Raspbian Stretch Lite 4.14 using Bluez 5.43.







    share|improve this question























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I've been trying to get bluetooth working on my Raspberry Pi 1 Model B+ running Raspbian Stretch Lite 4.14 with a 3rd party USB bluetooth dongle.



      I installed Bluez 5.43 for python 2.7, and was able to pair with another device using bluetoothctl. However, when I then try to connect a BluetoothSocket to that device, I get bluetooth.btcommon.BluetoothError: (13, 'Permission denied').



      I found this thread with the same issue, and it was resolved by running sudo python script.py.



      However, when I do the same and run the python script with sudo, the program still fails with the same error.



      This is my python script. It is Python2.7 running on Raspbian Stretch Lite 4.14 using Bluez 5.43.







      share|improve this question













      I've been trying to get bluetooth working on my Raspberry Pi 1 Model B+ running Raspbian Stretch Lite 4.14 with a 3rd party USB bluetooth dongle.



      I installed Bluez 5.43 for python 2.7, and was able to pair with another device using bluetoothctl. However, when I then try to connect a BluetoothSocket to that device, I get bluetooth.btcommon.BluetoothError: (13, 'Permission denied').



      I found this thread with the same issue, and it was resolved by running sudo python script.py.



      However, when I do the same and run the python script with sudo, the program still fails with the same error.



      This is my python script. It is Python2.7 running on Raspbian Stretch Lite 4.14 using Bluez 5.43.









      share|improve this question












      share|improve this question




      share|improve this question








      edited Jul 27 at 20:16
























      asked Jul 27 at 20:02









      coolioasjulio

      1063




      1063

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          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%2funix.stackexchange.com%2fquestions%2f458942%2fpermission-denied-as-root-when-connecting-bluetoothsocket-with-bluez-5-43%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes










           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f458942%2fpermission-denied-as-root-when-connecting-bluetoothsocket-with-bluez-5-43%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Displaying single band from multi-band raster using QGIS

          How many registers does an x86_64 CPU actually have?