Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Missing CAP_NET_ADMIN permission.. REPOST
Forum Update on Monday, May 27th 2025

Missing CAP_NET_ADMIN permission.. REPOST

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 424 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Anonymous_Banned275
    wrote on last edited by
    #1

    Against my better judgement - I am attempting AGAIN to use Qt examples "btchat".
    After correcting some example code issues I am back to the old and NOT SOLVED problem with " Missing CAP_NET_ADMIN permission."
    Going thru past posts - there has been MANY "fixes" to bypass this error. Since I have tried few other ways to work with Bluetooth I feel qualified to state this
    "THIS ERROR is posted ONLY by Qt " - and that is not just my opinion , that is a fact.

    I would like to SERIOUSLY discuss AND SOLVE this Qt usage of "bluez" library error. I am not looking for various hacks to bypass this - I am looking for way to permanently fix this Qt error.

    I would very much appreciate if only Bluetooth users/ coders with actual experience with this error reply.
    No AI bots are welcome ....

    I am looking for a SOLUTION, I am not asking for opinions.

    00:50:B6:80:4D:5D"
    "starts NORMAL OS void Chat::connectClicked()  line @ 554 \n adapter ?? 00:50:B6:80:4D:5D"
    "RemoteSelector::startDiscovery(const QBluetoothUuid &uuid)void RemoteSelector::startDiscovery(const QBluetoothUuid &)  line @ 111"
    qt.bluetooth.bluez: Missing CAP_NET_ADMIN permission. Cannot determine whether a found address is of random or public type.
    qt.bluetooth.bluez: SDP scan failure QProcess::NormalExit 3
    ```https://forum.qt.io/topic/114503/missing-cap_net_admin-permission/11?page=2
    
    PS
    I am currently using 6.4 version of "btchat", but I started with 5.15 and it had same issue. I do not know if 6.6  has this fixed.
    G 1 Reply Last reply
    0
    • A Anonymous_Banned275

      Against my better judgement - I am attempting AGAIN to use Qt examples "btchat".
      After correcting some example code issues I am back to the old and NOT SOLVED problem with " Missing CAP_NET_ADMIN permission."
      Going thru past posts - there has been MANY "fixes" to bypass this error. Since I have tried few other ways to work with Bluetooth I feel qualified to state this
      "THIS ERROR is posted ONLY by Qt " - and that is not just my opinion , that is a fact.

      I would like to SERIOUSLY discuss AND SOLVE this Qt usage of "bluez" library error. I am not looking for various hacks to bypass this - I am looking for way to permanently fix this Qt error.

      I would very much appreciate if only Bluetooth users/ coders with actual experience with this error reply.
      No AI bots are welcome ....

      I am looking for a SOLUTION, I am not asking for opinions.

      00:50:B6:80:4D:5D"
      "starts NORMAL OS void Chat::connectClicked()  line @ 554 \n adapter ?? 00:50:B6:80:4D:5D"
      "RemoteSelector::startDiscovery(const QBluetoothUuid &uuid)void RemoteSelector::startDiscovery(const QBluetoothUuid &)  line @ 111"
      qt.bluetooth.bluez: Missing CAP_NET_ADMIN permission. Cannot determine whether a found address is of random or public type.
      qt.bluetooth.bluez: SDP scan failure QProcess::NormalExit 3
      ```https://forum.qt.io/topic/114503/missing-cap_net_admin-permission/11?page=2
      
      PS
      I am currently using 6.4 version of "btchat", but I started with 5.15 and it had same issue. I do not know if 6.6  has this fixed.
      G Offline
      G Offline
      gumtown
      wrote on last edited by gumtown
      #2

      @AnneRanch I am looking for the same solution too.

      JonBJ 1 Reply Last reply
      0
      • G gumtown

        @AnneRanch I am looking for the same solution too.

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by
        #3

        @gumtown
        Plenty of questions/solutions to this from Googling. See e.g. https://stackoverflow.com/questions/60989706/qt-bluetooth-stuck-when-connecting-to-classic-bluetooth-device

        You are trying to run your software as a non-root user.

        Try

        sudo setcap 'cap_net_raw,cap_net_admin+eip' yourapplication

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved