Missing CAP_NET_ADMIN permission.. REPOST
-
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.
-
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.
-
@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-deviceYou are trying to run your software as a non-root user.
Try
sudo setcap 'cap_net_raw,cap_net_admin+eip' yourapplication